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 --- image/mng.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'image/mng.c') 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); -- cgit v1.2.3