ports/cad/spice/files/patch-src_include_os_bsd_h
Thierry Thomas 714ea1c662 - Switch to the latest distfiles;
- Import a patch from DragonflyBSD;

- Pet portlint.

Submitted by:	Pedro F. Giffuni <pfgshield-freebsd (at) yahoo.com>
2006-04-05 20:51:27 +00:00

39 lines
1.5 KiB
Text

--- src/include/os_bsd.h.orig Sat Apr 24 18:09:46 1993
+++ src/include/os_bsd.h Mon Apr 3 21:27:21 2006
@@ -8,18 +8,32 @@
#include "os_unix.h"
+#ifdef __FreeBSD__
+#define HAS_STDLIB /* #include <stdlib.h> for libc defs */
+#define HAS_SYSVDIRS /* <sys/dirent.h> */
+#define HAS_INTWAITSTATUS /* wait(3) takes an int *, not a union */
+#define HAS_STRINGS /* use <strings.h> instead of <string.h> */
+#define HAS_STRCHR /* strchr( ) instead of index( ) */
+#else
#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_BSDDIRS /* <sys/dir.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( ) */
#define HAS_BSDTTY /* <sgtty.h> */
-#define HAS_BSDDIRS /* <sys/dir.h> */
#define HAS_BSDRUSAGE /* getrusage( ) */
#define HAS_BSDRLIMIT /* getrlimit( ) */
#define HAS_DUP2
#define HAS_GETWD /* getwd(buf) */
-#define HAS_STRINGS /* use <strings.h> instead of <string.h> */
+
+#ifdef __FreeBSD__
+#define HAS_BSDSOCKETS /* <net/inet.h>, socket( ), etc. */
+#define HAS_BSDTIME /* gettimeofday( ) return time */
+#define HAS_FLOAT_H /* float.h */
+#endif