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 /image | |
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 'image')
-rw-r--r-- | image/mng.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/image/mng.c b/image/mng.c index 9949e3028..2e688cdec 100644 --- a/image/mng.c +++ b/image/mng.c @@ -345,8 +345,14 @@ mng_uint32 nsmng_gettickcount(mng_handle mng) { static bool start = true; static time_t t0; struct timeval tv; +#if defined(__SVR4) && defined(__sun) + /* Solaris doesn't have this structure, and ignores the second + * parameter to gettimeofday() + */ + int tz; +#else struct timezone tz; - +#endif assert(mng != NULL); gettimeofday(&tv, &tz); |