$NetBSD: patch-aa,v 1.4 1999/01/15 20:13:24 frueauf Exp $ *** util/build.orig Sun Mar 31 10:56:09 1996 --- util/build Sun Mar 31 10:57:21 1996 *************** *** 96,102 **** TMP_LEADER="${TMP_DIR}/buildl$$" TMP_TRAILER="${TMP_DIR}/buildt$$" ! trap 'rm -f ${TMP_LEADER} ${TMP_TRAILER}; exit 1' 1 2 3 4 6 7 8 9 10 12 13 14 15 echo > "${TMP_TRAILER}" BAD=false DEBUG= --- 96,102 ---- TMP_LEADER="${TMP_DIR}/buildl$$" TMP_TRAILER="${TMP_DIR}/buildt$$" ! trap 'rm -f ${TMP_LEADER} ${TMP_TRAILER}; exit 1' 1 2 3 4 6 7 8 10 12 13 14 15 echo > "${TMP_TRAILER}" BAD=false DEBUG= *** src/lib/fte/resource.c.orig Sun Mar 31 10:59:57 1996 --- src/lib/fte/resource.c Sun Mar 31 11:00:57 1996 *************** *** 369,375 **** --- 369,377 ---- long x; SIGNAL_TYPE (*orig_signal)( ); + #if !(defined(__FreeBSD__) || defined(__NetBSD__)) if (getenv("SPICE_NO_DATASEG_CHECK")) + #endif return 0; low = 0; *** src/include/misc.h.orig Thu Dec 1 09:17:02 1994 --- src/include/misc.h Sun Mar 31 12:32:58 1996 *************** *** 86,92 **** --- 86,94 ---- extern char *realloc(); extern char *getenv(); extern int errno; + #if !(defined(__FreeBSD__) || defined(__NetBSD__)) extern char *sys_errlist[]; + #endif extern char *getenv(); extern char *getwd(); extern int rand(); *************** *** 111,122 **** --- 111,124 ---- # endif /* clearerr */ # endif /* HAS_CLEARERR */ + #if !(defined(__FreeBSD__) || defined(__NetBSD__)) # ifndef bzero extern int bzero(); # endif # ifndef bcopy extern void bcopy(); # endif + #endif /* defined(__FreeBSD__) || defined(__NetBSD__) */ # ifndef index # ifdef HAS_INDEX *** src/include/os_bsd.h.orig Sat Apr 24 18:09:46 1993 --- src/include/os_bsd.h Tue Jun 2 22:28:04 1998 *************** *** 8,19 **** #include "os_unix.h" #define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */ - #define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */ #define HAS_FTIME /* ftime( ), */ #define HAS_TERMCAP /* tgetxxx( ) */ #define HAS_VFORK /* BSD-ism, should not be necessary */ - #define HAS_INDEX /* index( ) instead of strchr( ) */ #define HAS_BCOPY /* bcopy( ), bzero( ) */ #define HAS_BSDRANDOM /* srandom( ) and random( ) */ #define HAS_BSDTTY /* */ --- 8,23 ---- #include "os_unix.h" + #if !(defined(__FreeBSD__) || defined(__NetBSD__)) #define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */ #define HAS_FTIME /* ftime( ), */ + #define HAS_INDEX /* index( ) instead of strchr( ) */ + #define HAS_STRINGS /* use instead of */ + #endif + + #define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */ #define HAS_TERMCAP /* tgetxxx( ) */ #define HAS_VFORK /* BSD-ism, should not be necessary */ #define HAS_BCOPY /* bcopy( ), bzero( ) */ #define HAS_BSDRANDOM /* srandom( ) and random( ) */ #define HAS_BSDTTY /* */ *************** *** 22,25 **** #define HAS_BSDRLIMIT /* getrlimit( ) */ #define HAS_DUP2 #define HAS_GETWD /* getwd(buf) */ ! #define HAS_STRINGS /* use instead of */ --- 26,35 ---- #define HAS_BSDRLIMIT /* getrlimit( ) */ #define HAS_DUP2 #define HAS_GETWD /* getwd(buf) */ ! ! #if defined(__FreeBSD__) || defined(__NetBSD__) ! #define HAS_BSDSOCKETS /* , socket( ), etc. */ ! #define HAS_BSDTIME /* gettimeofday( ) return time */ ! #define HAS_FLOAT_H /* float.h */ ! #define HAS_STRCHR /* strchr( ) instead of index( ) */ ! #endif