29 lines
586 B
Plaintext
29 lines
586 B
Plaintext
$OpenBSD: patch-scm_time_c,v 1.2 2001/02/03 20:42:47 espie Exp $
|
|
--- time.c.orig Tue May 2 04:21:39 2000
|
|
+++ time.c Tue Jan 30 10:00:34 2001
|
|
@@ -44,6 +44,11 @@
|
|
|
|
#include "scm.h"
|
|
|
|
+#ifdef __unix__
|
|
+# ifndef unix
|
|
+# define unix 1
|
|
+# endif
|
|
+#endif
|
|
#ifdef STDC_HEADERS
|
|
# include <time.h>
|
|
# ifdef M_SYSV
|
|
@@ -104,6 +109,12 @@
|
|
# define USE_GETTIMEOFDAY
|
|
#endif
|
|
#ifdef __FreeBSD__
|
|
+# include <sys/types.h>
|
|
+# include <sys/time.h>
|
|
+# include <sys/timeb.h>
|
|
+# define USE_GETTIMEOFDAY
|
|
+#endif
|
|
+#ifdef __OpenBSD__
|
|
# include <sys/types.h>
|
|
# include <sys/time.h>
|
|
# include <sys/timeb.h>
|