From 43257a160bbdef8a8381fc7cc01741568ae1e320 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Fri, 15 Jun 2007 22:07:11 +0000 Subject: Changes to allow building on Solaris. * Tested on Solaris Express: Developer Edition, which is between Solaris 10 and 11. * Used gcc, libmng etc packages using pkg-get and blastwave's resources. * Had to build lemon and re2c manually. svn path=/trunk/netsurf/; revision=3350 --- utils/useragent.c | 2 +- utils/utf8.c | 2 +- utils/utils.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/useragent.c b/utils/useragent.c index 4decb7736..65ac012ad 100644 --- a/utils/useragent.c +++ b/utils/useragent.c @@ -31,7 +31,7 @@ user_agent_build_string(void) char *ua_string; int len; - if (uname(&un) == 0) { + if (uname(&un) >= 0) { sysname = un.sysname; machine = un.machine; } diff --git a/utils/utf8.c b/utils/utf8.c index 69414400e..1dcb49e93 100644 --- a/utils/utf8.c +++ b/utils/utf8.c @@ -14,7 +14,7 @@ #include #include #include - +#define LIBICONV_PLUG #include #include "utils/log.h" diff --git a/utils/utils.c b/utils/utils.c index f2250b7fa..53124a0d1 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -257,7 +257,7 @@ unsigned int wallclock(void) } -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || (defined(__SVR4) && defined(__sun)) /** * Duplicate up to n characters of a string. -- cgit v1.2.3