diff options
author | ed <ed@FreeBSD.org> | 2016-07-31 17:41:12 +0800 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2016-07-31 17:41:12 +0800 |
commit | e12e8788297ea6c946b8ee839ea952b8445731a7 (patch) | |
tree | 30b54463e6a915397492eac4b1632a2a39b729c4 | |
parent | 59d26c653328e608bfc426d3a4d46cdf3a3e1131 (diff) | |
download | freebsd-ports-gnome-e12e8788297ea6c946b8ee839ea952b8445731a7.tar.gz freebsd-ports-gnome-e12e8788297ea6c946b8ee839ea952b8445731a7.tar.zst freebsd-ports-gnome-e12e8788297ea6c946b8ee839ea952b8445731a7.zip |
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
-rw-r--r-- | games/falconseye/files/patch-include_system_h | 2 | ||||
-rw-r--r-- | games/nethack34/files/patch-include-system.h | 2 | ||||
-rw-r--r-- | games/nethack36/files/patch-include-system.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/games/falconseye/files/patch-include_system_h b/games/falconseye/files/patch-include_system_h index 45c67123a536..06f095d07c9e 100644 --- a/games/falconseye/files/patch-include_system_h +++ b/games/falconseye/files/patch-include_system_h @@ -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)); diff --git a/games/nethack34/files/patch-include-system.h b/games/nethack34/files/patch-include-system.h index d3ee0e028d96..9bec1952f4f3 100644 --- a/games/nethack34/files/patch-include-system.h +++ b/games/nethack34/files/patch-include-system.h @@ -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 diff --git a/games/nethack36/files/patch-include-system.h b/games/nethack36/files/patch-include-system.h index a1cdf62b87b3..de95b659c5a1 100644 --- a/games/nethack36/files/patch-include-system.h +++ b/games/nethack36/files/patch-include-system.h @@ -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)); |