diff options
author | hubertf <hubertf@pkgsrc.org> | 1998-06-11 14:51:54 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1998-06-11 14:51:54 +0000 |
commit | a8f3e2682340ef5587258c1ee98a73f74c4a4e97 (patch) | |
tree | adf7cbe649f3e257fba66a9b022816f25213d6fe /cad/spice/patches | |
parent | 9bc476a12c1cceb9254ff05ee3ad16ec0ace589d (diff) | |
download | pkgsrc-a8f3e2682340ef5587258c1ee98a73f74c4a4e97.tar.gz |
Rework for NetBSD
Diffstat (limited to 'cad/spice/patches')
-rw-r--r-- | cad/spice/patches/patch-aa | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cad/spice/patches/patch-aa b/cad/spice/patches/patch-aa index 8e423df0cf3..6faa5aa343d 100644 --- a/cad/spice/patches/patch-aa +++ b/cad/spice/patches/patch-aa @@ -113,7 +113,7 @@ long x; SIGNAL_TYPE (*orig_signal)( ); -+ #ifndef __FreeBSD__ ++ #if !(defined(__FreeBSD__) || defined(__NetBSD__)) if (getenv("SPICE_NO_DATASEG_CHECK")) + #endif return 0; @@ -127,7 +127,7 @@ extern char *realloc(); extern char *getenv(); extern int errno; -+ #ifndef __FreeBSD__ ++ #if !(defined(__FreeBSD__) || defined(__NetBSD__)) extern char *sys_errlist[]; + #endif extern char *getenv(); @@ -139,14 +139,14 @@ # endif /* clearerr */ # endif /* HAS_CLEARERR */ -+ #ifndef __FreeBSD__ ++ #if !(defined(__FreeBSD__) || defined(__NetBSD__)) # ifndef bzero extern int bzero(); # endif # ifndef bcopy extern void bcopy(); # endif -+ #endif /* __FreeBSD__ */ ++ #endif /* defined(__FreeBSD__) || defined(__NetBSD__) */ # ifndef index # ifdef HAS_INDEX @@ -170,7 +170,7 @@ #include "os_unix.h" -+ #ifndef __FreeBSD__ ++ #if !(defined(__FreeBSD__) || defined(__NetBSD__)) #define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */ #define HAS_FTIME /* ftime( ), <times.h> */ + #define HAS_INDEX /* index( ) instead of strchr( ) */ @@ -194,7 +194,7 @@ #define HAS_DUP2 #define HAS_GETWD /* getwd(buf) */ ! -! #ifdef __FreeBSD__ +! #if defined(__FreeBSD__) || defined(__NetBSD__) ! #define HAS_BSDSOCKETS /* <net/inet.h>, socket( ), etc. */ ! #define HAS_BSDTIME /* gettimeofday( ) return time */ ! #define HAS_FLOAT_H /* float.h */ |