diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2007-06-15 22:07:11 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2007-06-15 22:07:11 +0000 |
commit | 43257a160bbdef8a8381fc7cc01741568ae1e320 (patch) | |
tree | 6f34e444c24604101fe6868e9a19d4ee97c97444 /utils | |
parent | ed61b382bc12f15df4bb5306efb7980e7dc293aa (diff) | |
download | netsurf-43257a160bbdef8a8381fc7cc01741568ae1e320.tar.gz netsurf-43257a160bbdef8a8381fc7cc01741568ae1e320.tar.bz2 |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/useragent.c | 2 | ||||
-rw-r--r-- | utils/utf8.c | 2 | ||||
-rw-r--r-- | utils/utils.c | 2 |
3 files changed, 3 insertions, 3 deletions
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 <errno.h> #include <stdlib.h> #include <string.h> - +#define LIBICONV_PLUG #include <iconv.h> #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. |