2013-09-26 17:14:40 +02:00

18 lines
422 B
Plaintext

$NetBSD: patch-af,v 1.1 2001/07/02 15:30:59 abs Exp $
--- imlib/port/unix/timing.c.orig Sun Jul 23 11:14:13 1995
+++ imlib/port/unix/timing.c
@@ -15,7 +15,11 @@
void time_marker::get_time()
{
- struct timezone tz={0,DST_USA};
+#ifdef __NetBSD__
+ struct timezone tz={0,0}; /* gettimeofday is deprecated */
+#else
+ struct timezone tz={0,DST_USA};
+#endif
gettimeofday((struct timeval *)&seconds,&tz);
}