From: cohrs Date: Sun, 25 May 2003 19:03:55 +0000 (+0000) Subject: untested FreeBSD compilation fix X-Git-Tag: MOVE2GIT~1955 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=702c373619cc5bef12ac0d318272d1cb7ca50ecd;p=nethack untested FreeBSD compilation fix this particular fix has been sitting around my inbox for a while although we've had reports of FreeBSD build problems for a long time. While it's untested, it certainly looks like the unfixed system.h had a case that could not be reached. bsdi seems like it needs to be handled the same way. --- diff --git a/doc/fixes34.2 b/doc/fixes34.2 index e0f505a9f..7859f4ae1 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -89,6 +89,7 @@ win32tty: add subkeyvalue option to alter key values; Finnish keyboard fix win32tty: distinguish between black/gray/white (by Quietust) tiles: high priest tile had a couple bad pixels tiles: bad pixels in Croesus and Yeenoghu tiles +FreeBSD: incorrect srandom declaration General New Features diff --git a/include/system.h b/include/system.h index abb6e1aba..fc3964a46 100644 --- a/include/system.h +++ b/include/system.h @@ -79,7 +79,7 @@ typedef long off_t; # if !defined(__SC__) && !defined(LINUX) E long NDECL(random); # endif -# if !defined(SUNOS4) || defined(RANDOM) +# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM) E void FDECL(srandom, (unsigned int)); # else # if !defined(bsdi) && !defined(__FreeBSD__)