diff options
Diffstat (limited to 'biology/mapm3/files/patch-lib-system.h')
-rw-r--r-- | biology/mapm3/files/patch-lib-system.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/biology/mapm3/files/patch-lib-system.h b/biology/mapm3/files/patch-lib-system.h new file mode 100644 index 000000000000..a030b5a46fd2 --- /dev/null +++ b/biology/mapm3/files/patch-lib-system.h @@ -0,0 +1,71 @@ +--- lib/system.h.orig 2008-04-04 20:05:29.000000000 +0000 ++++ lib/system.h 2008-03-27 20:49:34.000000000 +0000 +@@ -43,6 +43,7 @@ + _SYS_OSF Specifics for OSF/1 for DEC Alpha (like, if it ever ships) + _SYS_AIX Specifics for the inferior but marketable AIX (RISC or other?) + _SYS_HPUX Specifics for HP-UX (8.x?) for HP 9000/700 series. ++ _SYS_BSD Specifics for modern BSD systems (tested on FreeBSD 6.3) + _SYS_UNIX Basic Unix semantics, defined if any one of the above is + + _SYS_WATCOM Specifics for WATCOM C/386 9.0 with apropriate libraries +@@ -86,6 +87,11 @@ + #else + #ifdef _SYS_AUX + #define _SYS_UNIX /* Note: NOT _SYS_MAC */ ++#else ++#ifdef _SYS_BSD ++#define _SYS_UNIX ++#else ++#endif + #endif + #endif + #endif +@@ -191,6 +197,9 @@ + #ifdef _SYS_ULTRIX + #define SIGHANDLE void + #endif ++#ifdef _SYS_BSD ++#define SIGHANDLE void ++#endif + + + +@@ -210,10 +219,14 @@ + #ifdef _SYS_ULTRIX + #define USE_RANDOM + #else ++#ifdef _SYS_BSD ++#define USE_DRAND48 /* bsd has 'random' */ ++#else + #define USE_SRAND + #endif + #endif + #endif ++#endif + + + /***************************** C-Library ************************************** +@@ -282,6 +295,14 @@ + #define QSORT_LENGTH int /* actually width is an int, not a unsigned */ + #endif + ++#ifdef _SYS_BSD /* modern BSD systems (tested on FreeBSD 6.3) */ ++#define CALLOC_PTR_TO char ++#define CALLOC_NUM_TYPE size_t /* unsigned in man page is wrong? */ ++#define SIZEOF_TYPE size_t ++#define QSORT_DATA_PTR_TO char ++#define QSORT_LENGTH int /* actually width is an int, not a unsigned */ ++#endif ++ + #ifdef _SYS_AUX /* just like ULTRIX? */ + #define CALLOC_PTR_TO char + #define CALLOC_NUM_TYPE size_t /* unsigned in man page is wrong? */ +@@ -583,7 +604,7 @@ + #include <signal.h> + #include <errno.h> + #include <time.h> /* for ctime() def - Who does not have this file? */ +-#include <malloc.h> ++#include <stdlib.h> + #include <sys/types.h> + + #ifdef TRY_WINSIZE |