diff options
-rw-r--r-- | games/nethack34/files/patch-ab | 22 | ||||
-rw-r--r-- | games/nethack34/files/patch-ac | 20 |
2 files changed, 40 insertions, 2 deletions
diff --git a/games/nethack34/files/patch-ab b/games/nethack34/files/patch-ab new file mode 100644 index 000000000000..25b70bd93dc0 --- /dev/null +++ b/games/nethack34/files/patch-ab @@ -0,0 +1,22 @@ +--- include/system.h.orig Thu Mar 21 08:42:55 2002 ++++ include/system.h Sun Jun 16 15:49:55 2002 +@@ -79,7 +79,9 @@ + # if !defined(__SC__) && !defined(LINUX) + E long NDECL(random); + # endif +-# if !defined(SUNOS4) || defined(RANDOM) ++# if defined(__FreeBSD__) ++E void FDECL(srandom, (unsigned long)); ++# elif !defined(SUNOS4) || defined(RANDOM) + E void FDECL(srandom, (unsigned int)); + # else + # if !defined(bsdi) && !defined(__FreeBSD__) +@@ -521,7 +523,7 @@ + # endif + # endif + +-# if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE)) ++# if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE)) || defined(__FreeBSD__) + E time_t FDECL(time, (time_t *)); + # else + E long FDECL(time, (time_t *)); diff --git a/games/nethack34/files/patch-ac b/games/nethack34/files/patch-ac index d2eec6982326..dc4d9a236a94 100644 --- a/games/nethack34/files/patch-ac +++ b/games/nethack34/files/patch-ac @@ -1,5 +1,21 @@ ---- include/unixconf.h.orig Mon Jul 17 11:03:51 2000 -+++ include/unixconf.h Fri Oct 13 10:06:57 2000 +--- include/unixconf.h.orig Thu Mar 21 08:42:56 2002 ++++ include/unixconf.h Sun Jun 16 15:05:24 2002 +@@ -19,13 +19,13 @@ + */ + + /* define exactly one of the following four choices */ +-/* #define BSD 1 */ /* define for 4.n BSD */ ++#define BSD 1 /* define for 4.n BSD */ + /* also for relatives like SunOS 4.x, DG/UX, and */ + /* older versions of Linux */ + /* #define ULTRIX */ /* define for Ultrix v3.0 or higher (but not lower) */ + /* Use BSD for < v3.0 */ + /* "ULTRIX" not to be confused with "ultrix" */ +-#define SYSV /* define for System V, Solaris 2.x, newer versions */ ++/* #define SYSV */ /* define for System V, Solaris 2.x, newer versions */ + /* of Linux */ + /* #define HPUX */ /* Hewlett-Packard's Unix, version 6.5 or higher */ + /* use SYSV for < v6.5 */ @@ -47,7 +47,7 @@ * job control (note that AIX is SYSV otherwise) * Also define this for AIX 3.2 */ |