libreplace: Fix the build on Solaris
[sfrench/samba-autobuild/.git] / lib / replace / wscript
index 9a8b7f70503e95a97a126c22af9efd0ea252b5eb..0be52f7a431e6e0c9ca8c52f2428e263a0670714 100644 (file)
@@ -506,6 +506,11 @@ removeea setea
                            'int gettimeofday(struct timeval *tv, struct timezone *tz)',
                            define='HAVE_GETTIMEOFDAY_TZ', headers='sys/time.h')
 
+    conf.CHECK_C_PROTOTYPE('gettimeofday',
+                           'int gettimeofday(struct timeval *tv, void *tz)',
+                           define='HAVE_GETTIMEOFDAY_TZ_VOID',
+                           headers='sys/time.h')
+
     conf.CHECK_CODE('#include "test/snprintf.c"',
                     define="HAVE_C99_VSNPRINTF",
                     execute=True,