blob: a497016396df8aed463da00b3ed8486fcb0044e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$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);
}
|