summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-08-11 16:44:12 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-08-11 16:44:12 +0000
commit25018c455b1297b72bb793a8eba7bc9426e28326 (patch)
tree438e57f78edd43f3b0e20142f5e25a94368544c4 /image
parent1124712760b2dbcd73c67a8e7249b85d860668fc (diff)
downloadnetsurf-25018c455b1297b72bb793a8eba7bc9426e28326.tar.gz
netsurf-25018c455b1297b72bb793a8eba7bc9426e28326.tar.bz2
Make nsgtk compile on Mac OS X.
svn path=/trunk/netsurf/; revision=5031
Diffstat (limited to 'image')
-rw-r--r--image/mng.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/image/mng.c b/image/mng.c
index e4e375922..d6902f4e9 100644
--- a/image/mng.c
+++ b/image/mng.c
@@ -383,9 +383,10 @@ mng_uint32 nsmng_gettickcount(mng_handle mng) {
static bool start = true;
static time_t t0;
struct timeval tv;
-#if defined(__SVR4) && defined(__sun) || defined(__NetBSD__)
- /* Solaris and NetBSD don't have this structure, and ignores the second
- * parameter to gettimeofday()
+#if defined(__SVR4) && defined(__sun) || defined(__NetBSD__) || \
+ defined(__APPLE__)
+ /* Solaris, NetBSD, and OS X don't have this structure, and ignore the
+ * second parameter to gettimeofday()
*/
int tz;
#else