ports/games/falconseye/files/patch-include_system_h
Ed Schouten f4af647e8b Don't let the Nethack ports declare srandom() themselves.
As the prototype of srandom() has changed, be sure to no longer declare
the prototype of this function ourselves. Instead, simply pull in the
<stdlib.h> header that declares this function.

Reported by:	antoine@
Reviewed by:	glewis@
Differential Revision:	https://reviews.freebsd.org/D7378
2016-07-31 09:41:12 +00:00

27 lines
830 B
Text

--- include/system.h.orig Sun Jun 24 18:57:16 2001
+++ include/system.h Fri Aug 24 01:19:07 2001
@@ -78,7 +78,7 @@
E long NDECL(random);
# endif
# if !defined(SUNOS4) || defined(RANDOM)
-E void FDECL(srandom, (unsigned int));
+#include <stdlib.h> /* srandom() differs between versions of FreeBSD. */
# else
# if !defined(bsdi) && !defined(__FreeBSD__)
E int FDECL(srandom, (unsigned int));
@@ -513,11 +513,15 @@
# endif
# endif
+# if defined(BSD)
+/* no declaration needed; it's in time.h */
+#else
# if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
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> */