$NetBSD: patch-ad,v 1.4 2006/01/06 18:21:44 joerg Exp $ --- src/include/os_bsd.h.orig 1993-04-24 23:09:46.000000000 +0000 +++ src/include/os_bsd.h @@ -8,12 +8,16 @@ Copyright 1990 Regents of the University #include "os_unix.h" +#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)) #define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */ -#define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */ #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_INDEX /* index( ) instead of strchr( ) */ #define HAS_BCOPY /* bcopy( ), bzero( ) */ #define HAS_BSDRANDOM /* srandom( ) and random( ) */ #define HAS_BSDTTY /* */ @@ -22,4 +26,14 @@ Copyright 1990 Regents of the University #define HAS_BSDRLIMIT /* getrlimit( ) */ #define HAS_DUP2 #define HAS_GETWD /* getwd(buf) */ -#define HAS_STRINGS /* use instead of */ + +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +#define HAS_STDLIB +#define HAS_BSDSOCKETS /* , socket( ), etc. */ +#define HAS_BSDTIME /* gettimeofday( ) return time */ +#define HAS_FLOAT_H /* float.h */ +#define HAS_STRCHR /* strchr( ) instead of index( ) */ +#define HAS_LIMITS_H /* limits.h exists */ +#define HAS_INTWAITSTATUS /* wait(int *status) */ +/*#define HAS_GNUREADLINE*/ /* compile in readline support */ +#endif