summaryrefslogtreecommitdiff
path: root/cad/spice/patches/patch-ad
blob: c31f49dd5063a1f113a344f74ccc1db3146fada6 (plain)
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
36
37
38
39
$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