summaryrefslogtreecommitdiff
path: root/games/falconseye/files/patch-include_system_h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2016-07-31 09:41:12 +0000
committerEd Schouten <ed@FreeBSD.org>2016-07-31 09:41:12 +0000
commitf4af647e8b08baef1e705a9220c6fae9c7ffdad7 (patch)
tree30b54463e6a915397492eac4b1632a2a39b729c4 /games/falconseye/files/patch-include_system_h
parentUpdate devel/elixir-exprotobuf to version 1.1.0. (diff)
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
Notes
Notes: svn path=/head/; revision=419352
Diffstat (limited to 'games/falconseye/files/patch-include_system_h')
-rw-r--r--games/falconseye/files/patch-include_system_h2
1 files changed, 1 insertions, 1 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));