7837273b5c
Avoid gets() usage and add __sparc__ to alignment needing CPUs, allowing it to run on my ss5.
17 lines
422 B
Text
17 lines
422 B
Text
$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);
|
|
}
|
|
|