openbsd-ports/games/nethack/patches/patch-ab
1998-07-29 01:22:23 +00:00

29 lines
778 B
Plaintext

--- include/system.h.orig Mon Nov 4 15:01:25 1996
+++ include/system.h Fri Jul 24 18:01:25 1998
@@ -80,7 +80,7 @@
# if !defined(SUNOS4) || defined(RANDOM)
E void FDECL(srandom, (unsigned int));
# else
-# ifndef bsdi
+# if !defined(bsdi)
E int FDECL(srandom, (unsigned int));
# endif
# endif
@@ -507,11 +507,15 @@
# endif
# endif
-# if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC)
+#if defined(BSD)
+/* no declaration needed: it's in time.h */
+#else
+# if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC)
E time_t FDECL(time, (time_t *));
# else
E long FDECL(time, (time_t *));
# endif /* ULTRIX */
+#endif
#ifdef VMS
/* used in makedefs.c, but missing from gcc-vms's <time.h> */