svn commit: r419352 - in head/games: falconseye/files nethack34/files nethack36/files
Ed Schouten
ed at FreeBSD.org
Sun Jul 31 09:41:13 UTC 2016
Author: ed (src committer)
Date: Sun Jul 31 09:41:12 2016
New Revision: 419352
URL: https://svnweb.freebsd.org/changeset/ports/419352
Log:
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
Modified:
head/games/falconseye/files/patch-include_system_h
head/games/nethack34/files/patch-include-system.h
head/games/nethack36/files/patch-include-system.h
Modified: head/games/falconseye/files/patch-include_system_h
==============================================================================
--- head/games/falconseye/files/patch-include_system_h Sun Jul 31 09:31:01 2016 (r419351)
+++ head/games/falconseye/files/patch-include_system_h Sun Jul 31 09:41:12 2016 (r419352)
@@ -5,7 +5,7 @@
# endif
# if !defined(SUNOS4) || defined(RANDOM)
-E void FDECL(srandom, (unsigned int));
-+E void FDECL(srandom, (unsigned long));
++#include <stdlib.h> /* srandom() differs between versions of FreeBSD. */
# else
# if !defined(bsdi) && !defined(__FreeBSD__)
E int FDECL(srandom, (unsigned int));
Modified: head/games/nethack34/files/patch-include-system.h
==============================================================================
--- head/games/nethack34/files/patch-include-system.h Sun Jul 31 09:31:01 2016 (r419351)
+++ head/games/nethack34/files/patch-include-system.h Sun Jul 31 09:41:12 2016 (r419352)
@@ -6,7 +6,7 @@
# endif
-# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM)
+# if defined(__FreeBSD__)
-+E void FDECL(srandom, (unsigned long));
++#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
Modified: head/games/nethack36/files/patch-include-system.h
==============================================================================
--- head/games/nethack36/files/patch-include-system.h Sun Jul 31 09:31:01 2016 (r419351)
+++ head/games/nethack36/files/patch-include-system.h Sun Jul 31 09:41:12 2016 (r419352)
@@ -6,7 +6,7 @@
#endif
-#if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) \
+# if defined(__FreeBSD__)
-+E void FDECL(srandom, (unsigned long));
++#include <stdlib.h> /* srandom() differs between versions of FreeBSD. */
+#elif (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) \
|| defined(RANDOM)
E void FDECL(srandom, (unsigned int));
More information about the svn-ports-all
mailing list