aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorWojciech A. Koszek <wkoszek@freebsd.org>2010-01-22 07:32:06 +0100
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:38 +1000
commit6e7b3dd60ce7b54e0937fef48b889296fdcfab09 (patch)
tree52a088f283c068444e9db5672ac0d311162e2157 /jim.c
parent8f9dcdd4e6e9ca134d67dfce114ebc426556821d (diff)
downloadjimtcl-6e7b3dd60ce7b54e0937fef48b889296fdcfab09.zip
jimtcl-6e7b3dd60ce7b54e0937fef48b889296fdcfab09.tar.gz
jimtcl-6e7b3dd60ce7b54e0937fef48b889296fdcfab09.tar.bz2
freebsd: make it compile
Casts to (void) are in order to silent GCC about unused variables. I didn't want to break ABI for the sake of clean compilation Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/jim.c b/jim.c
index fa16a82..2bceb5d 100644
--- a/jim.c
+++ b/jim.c
@@ -58,6 +58,19 @@
#include <errno.h>
#include <time.h>
#endif
+
+#ifdef __FreeBSD__
+#include <sys/param.h>
+
+#include <assert.h>
+#include <ctype.h>
+#include <errno.h>
+#include <string.h>
+#include <unistd.h>
+
+#define NEED_ENVIRON_EXTERN (1)
+#endif
+
#ifndef JIM_ANSIC
#define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */
#endif /* JIM_ANSIC */