]> granicus.if.org Git - nethack/commitdiff
untested FreeBSD compilation fix
authorcohrs <cohrs>
Sun, 25 May 2003 19:03:55 +0000 (19:03 +0000)
committercohrs <cohrs>
Sun, 25 May 2003 19:03:55 +0000 (19:03 +0000)
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.

doc/fixes34.2
include/system.h

index e0f505a9f6a2ec2197f2539658168b020c2a4e81..7859f4ae17b81f6adb7756c128bbdef2021a603c 100644 (file)
@@ -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
index abb6e1abaccc7ad53e3a4ccb4fbb641365c6156e..fc3964a466a0407fcf5558761b3c89d25ade7c1c 100644 (file)
@@ -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__)