pkgsrc/cad/spice/patches/patch-ad
joerg 94ccdd984d Add DragonFly support. Remove some pre-ANSI cruft which conflicts
with DragonFly's system headers. Fix errno.
2006-01-06 18:21:44 +00:00

39 lines
1.7 KiB
Text

$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( ), <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( ) */
#define HAS_BSDTTY /* <sgtty.h> */
@@ -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 <strings.h> instead of <string.h> */
+
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#define HAS_STDLIB
+#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