1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$NetBSD: patch-ad,v 1.3 2005/01/11 22:26:01 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( ), <times.h> */
+#define HAS_INDEX /* index( ) instead of strchr( ) */
+#define HAS_STRINGS /* use <strings.h> instead of <string.h> */
+#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 <strings.h> instead of <string.h> */
+
+#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 */
+#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
|