summaryrefslogtreecommitdiff
path: root/image/mng.c
diff options
context:
space:
mode:
Diffstat (limited to 'image/mng.c')
-rw-r--r--image/mng.c8
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);