diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-08-18 13:43:47 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-08-18 20:13:37 +1000 |
commit | 6f288aab0c5797f844ee458dd98f30b1f3db62c6 (patch) | |
tree | 630afcf247b6c60d9f04d31589d9a7a9d64aabb2 /jim-posix.c | |
parent | 645ed6fd4b6f9038c7e1d85d74c3872b3cb9a507 (diff) | |
download | jimtcl-6f288aab0c5797f844ee458dd98f30b1f3db62c6.zip jimtcl-6f288aab0c5797f844ee458dd98f30b1f3db62c6.tar.gz jimtcl-6f288aab0c5797f844ee458dd98f30b1f3db62c6.tar.bz2 |
Fix build on Solaris (gcc)
inet_ntop needs -lnsl on Solaris
Solaris has sysinfo, but no uptime
Link flags need to be a bit different
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-posix.c')
-rw-r--r-- | jim-posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jim-posix.c b/jim-posix.c index eeec649..2015f5f 100644 --- a/jim-posix.c +++ b/jim-posix.c @@ -29,7 +29,7 @@ #include "jim.h" #include "jimautoconf.h" -#ifdef HAVE_SYSINFO +#ifdef HAVE_SYS_SYSINFO_H #include <sys/sysinfo.h> #endif @@ -183,7 +183,7 @@ static int Jim_PosixGethostnameCommand(Jim_Interp *interp, int argc, Jim_Obj *co static int Jim_PosixUptimeCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { -#ifdef HAVE_SYSINFO +#ifdef HAVE_STRUCT_SYSINFO_UPTIME struct sysinfo info; if (argc != 1) { |