aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech A. Koszek <wkoszek@freebsd.org>2010-01-22 07:32:06 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-01-22 07:32:06 +0100
commit3c42134174d7d507b28451c20487a6c88ae42956 (patch)
tree2b94ec8d3e6413dde66df9c9439d6ff1935474c6
parent0a788252c37ce794672092a13336ab5e81643c40 (diff)
downloadjimtcl-3c42134174d7d507b28451c20487a6c88ae42956.zip
jimtcl-3c42134174d7d507b28451c20487a6c88ae42956.tar.gz
jimtcl-3c42134174d7d507b28451c20487a6c88ae42956.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>
-rw-r--r--jim.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/jim.c b/jim.c
index 7f0ecec..ca575b2 100644
--- a/jim.c
+++ b/jim.c
@@ -64,6 +64,19 @@ typedef CYG_ADDRWORD intptr_t;
#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 */
@@ -12507,6 +12520,8 @@ Jim_Nvp_name2value(Jim_Interp *interp,
{
const Jim_Nvp *p;
+ (void)interp;
+
p = Jim_Nvp_name2value_simple(_p, name);
/* result */
@@ -12533,6 +12548,8 @@ Jim_Nvp_name2value_nocase(Jim_Interp *interp, const Jim_Nvp *_p, const char *nam
{
const Jim_Nvp *p;
+ (void)interp;
+
p = Jim_Nvp_name2value_nocase_simple(_p, name);
if (puthere) {
@@ -12579,6 +12596,8 @@ Jim_Nvp_value2name(Jim_Interp *interp, const Jim_Nvp *_p, int value, Jim_Nvp **r
{
const Jim_Nvp *p;
+ (void)interp;
+
p = Jim_Nvp_value2name_simple(_p, value);
if (result) {