[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wcalc
- To: Marco Peereboom <marco@peereboom.us>
- Subject: Re: wcalc
- From: Aaron Suen <warr@myria.1972.lan>
- Date: Sun, 1 Aug 2004 23:29:32 -0400
- Cc: misc@openbsd.org
- Content-Disposition: inline
- References: <2F96BB6C-E430-11D8-89E5-000A95908CA4@peereboom.us>
- User-Agent: Mutt/1.5.6i
On Sun, Aug 01, 2004 at 10:01:01PM -0500, Marco Peereboom wrote:
> Does anyone have a port of wcalc (the cli version)?
Whew, that was almost too easy. Here's the diff. Download source
for v1.7, unpack, apply the patch, and ./configure && make && make
install. Don't know if this is fixed enough to commit to ports,
but it seems to work for me. YMMV, esp. on non-32-bit platforms.
--- calculator.c Mon Dec 29 02:24:53 2003
+++ calculator.c Sun Aug 1 23:27:41 2004
@@ -18,6 +18,9 @@
#define kbw_rand random
#endif
+#include <sys/limits.h>
+#define UINT32_MAX UINT_MAX
+
#if STDC_HEADERS
# include <string.h> /* for memset() */
#else
--
====================================
=> Aaron G. Suen
Sunday, August 1, 2004
11:20:28 PM EDT (UTC-0400)
http://suen.ed.psu.edu/~asuen/
====================================