Lines 1-43
Link Here
|
1 |
--- src/include/os_bsd.h.orig Sat Apr 24 18:09:46 1993 |
1 |
--- src/include/os_bsd.h.orig Sat Apr 24 18:09:46 1993 |
2 |
+++ src/include/os_bsd.h Mon Apr 3 21:27:21 2006 |
2 |
+++ src/include/os_bsd.h Mon Nov 12 03:14:36 2007 |
3 |
@@ -8,18 +8,36 @@ |
3 |
@@ -8,18 +8,35 @@ |
4 |
|
4 |
|
5 |
#include "os_unix.h" |
5 |
#include "os_unix.h" |
6 |
|
6 |
|
7 |
+#ifdef __FreeBSD__ |
7 |
+#ifdef __FreeBSD__ /* BSD4_3 */ |
8 |
+#define HAS_STDLIB /* #include <stdlib.h> for libc defs */ |
8 |
+#define HAS_STDLIB /* #include <stdlib.h> for libc defs */ |
9 |
+#define HAS_SYSVDIRS /* <sys/dirent.h> */ |
9 |
+#define HAS_SYSVDIRS /* <sys/dirent.h> */ |
10 |
+#define HAS_INTWAITSTATUS /* wait(3) takes an int *, not a union */ |
10 |
+#define HAS_INTWAITSTATUS /* wait(2) takes an int *, not a union */ |
11 |
+#define HAS_STRINGS /* use <strings.h> instead of <string.h> */ |
11 |
+#define HAS_STRINGS /* use <strings.h> instead of <string.h> */ |
12 |
+#define HAS_STRCHR /* strchr( ) instead of index( ) */ |
12 |
+#define HAS_STRCHR /* strchr(3) instead of index(3) */ |
|
|
13 |
+#define HAS_ATRIGH /* acosh(3), asinh(3), atanh(3) */ |
14 |
+#define HAS_FLOAT_H /* float.h */ |
15 |
+#define HAS_BSDSOCKETS /* <net/inet.h>, socket(2), etc. */ |
16 |
+#define HAS_BSDTIME /* gettimeofday(2) return time */ |
13 |
+#else |
17 |
+#else |
14 |
#define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */ |
18 |
#define HAS_NO_ATRIGH_DECL /* if asinh( ) is not in math.h */ |
15 |
-#define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */ |
19 |
-#define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */ |
16 |
#define HAS_FTIME /* ftime( ), <times.h> */ |
20 |
-#define HAS_FTIME /* ftime( ), <times.h> */ |
|
|
21 |
+#define HAS_FTIME /* ftime(3), <times.h> */ |
17 |
+#define HAS_INDEX /* index( ) instead of strchr( ) */ |
22 |
+#define HAS_INDEX /* index( ) instead of strchr( ) */ |
18 |
+#define HAS_BSDDIRS /* <sys/dir.h> */ |
23 |
+#define HAS_BSDDIRS /* <sys/dir.h> */ |
19 |
+#endif |
24 |
+#endif |
20 |
+ |
25 |
+ |
21 |
+#define HAS_ATRIGH /* acosh( ), asinh( ), atanh( ) */ |
|
|
22 |
#define HAS_TERMCAP /* tgetxxx( ) */ |
26 |
#define HAS_TERMCAP /* tgetxxx( ) */ |
23 |
#define HAS_VFORK /* BSD-ism, should not be necessary */ |
27 |
#define HAS_VFORK /* BSD-ism, should not be necessary */ |
24 |
-#define HAS_INDEX /* index( ) instead of strchr( ) */ |
28 |
-#define HAS_INDEX /* index( ) instead of strchr( ) */ |
25 |
#define HAS_BCOPY /* bcopy( ), bzero( ) */ |
29 |
#define HAS_BCOPY /* bcopy( ), bzero( ) */ |
26 |
#define HAS_BSDRANDOM /* srandom( ) and random( ) */ |
30 |
#define HAS_BSDRANDOM /* srandom( ) and random( ) */ |
27 |
+#ifdef __FreeBSD__ |
31 |
+#ifdef __FreeBSD__ /* BSD4_4 */ |
28 |
+#define HAS_POSIXTTY /* <termios.h> */ |
32 |
+#define HAS_POSIXTTY /* <termios.h> */ |
|
|
33 |
+#define HAS_GETCWD /* getcwd(buf,size) */ |
29 |
+#else |
34 |
+#else |
30 |
#define HAS_BSDTTY /* <sgtty.h> */ |
35 |
#define HAS_BSDTTY /* <sgtty.h> */ |
31 |
-#define HAS_BSDDIRS /* <sys/dir.h> */ |
36 |
-#define HAS_BSDDIRS /* <sys/dir.h> */ |
|
|
37 |
+#define HAS_GETWD /* getwd(buf) */ |
32 |
+#endif |
38 |
+#endif |
|
|
39 |
+ |
33 |
#define HAS_BSDRUSAGE /* getrusage( ) */ |
40 |
#define HAS_BSDRUSAGE /* getrusage( ) */ |
34 |
#define HAS_BSDRLIMIT /* getrlimit( ) */ |
41 |
#define HAS_BSDRLIMIT /* getrlimit( ) */ |
35 |
#define HAS_DUP2 |
42 |
#define HAS_DUP2 |
36 |
#define HAS_GETWD /* getwd(buf) */ |
43 |
-#define HAS_GETWD /* getwd(buf) */ |
37 |
-#define HAS_STRINGS /* use <strings.h> instead of <string.h> */ |
44 |
-#define HAS_STRINGS /* use <strings.h> instead of <string.h> */ |
38 |
+ |
|
|
39 |
+#ifdef __FreeBSD__ |
40 |
+#define HAS_BSDSOCKETS /* <net/inet.h>, socket( ), etc. */ |
41 |
+#define HAS_BSDTIME /* gettimeofday( ) return time */ |
42 |
+#define HAS_FLOAT_H /* float.h */ |
43 |
+#endif |