From f4af647e8b08baef1e705a9220c6fae9c7ffdad7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 31 Jul 2016 09:41:12 +0000 Subject: 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 header that declares this function. Reported by: antoine@ Reviewed by: glewis@ Differential Revision: https://reviews.freebsd.org/D7378 --- games/nethack34/files/patch-include-system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'games/nethack34/files/patch-include-system.h') 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 /* srandom() differs between versions of FreeBSD. */ +# elif (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM) E void FDECL(srandom, (unsigned int)); # else -- cgit v1.2.3