mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 20:36:30 -04:00
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
13 lines
562 B
C
13 lines
562 B
C
--- include/system.h.orig Sat Aug 30 09:07:23 2003
|
|
+++ include/system.h Tue Sep 2 00:39:39 2003
|
|
@@ -79,7 +79,9 @@
|
|
# if !defined(__SC__) && !defined(LINUX)
|
|
E long NDECL(random);
|
|
# endif
|
|
-# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM)
|
|
+# if defined(__FreeBSD__)
|
|
+#include <stdlib.h> /* srandom() differs between versions of FreeBSD. */
|
|
+# elif (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM)
|
|
E void FDECL(srandom, (unsigned int));
|
|
# else
|
|
# if !defined(bsdi) && !defined(__FreeBSD__)
|