$NetBSD: patch-ad,v 1.2 1999/10/01 17:05:15 dmcmahill Exp $ --- src/include/os_bsd.h.orig Sat Apr 24 19:09:46 1993 +++ src/include/os_bsd.h Thu Sep 30 12:02:51 1999 @@ -9,10 +9,14 @@ #include "os_unix.h" +#if !(defined(__FreeBSD__) || defined(__NetBSD__)) #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( ) */ @@ -23,3 +27,12 @@ #define HAS_DUP2 #define HAS_GETWD /* getwd(buf) */ -#define HAS_STRINGS /* use instead of */ + +#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( ) */ +#define HAS_LIMITS_H /* limits.h exists */ +#define HAS_INTWAITSTATUS /* wait(int *status) */ +#define HAS_GNUREADLINE /* compile in readline support */ +#endif