summaryrefslogtreecommitdiff
path: root/cad/cider/files/patch-ab
blob: 9c6425754efb5863525004ef1f99da939569e2c5 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
*** sim/spice/common/src/lib/fte/resource.c.orig	Sat Jan 29 18:48:28 1994
--- sim/spice/common/src/lib/fte/resource.c	Sun Dec 12 14:38:33 1999
***************
*** 370,376 ****
--- 370,378 ----
  	long x;
  	SIGNAL_TYPE	(*orig_signal)( );
  
+ #ifndef __FreeBSD__
  	if (getenv("SPICE_NO_DATASEG_CHECK"))
+ #endif
  		return 0;
  
  	low = 0;
*** sim/spice/common/src/include/misc.h.orig	Sat Jan 29 19:14:17 1994
--- sim/spice/common/src/include/misc.h	Sun Dec 12 14:38:33 1999
***************
*** 86,92 ****
--- 86,94 ----
  extern char *realloc();
  extern char *getenv();
  extern int errno;
+ #ifndef __FreeBSD__
  extern char *sys_errlist[];
+ #endif
  extern char *getenv();
  extern char *getwd();
  extern int rand();
***************
*** 109,120 ****
--- 111,124 ----
  #    endif /* clearerr */
  #  endif /* HAS_CLEARERR */
  
+ #ifndef __FreeBSD__
  #  ifndef bzero
  extern int bzero();
  #  endif
  #  ifndef bcopy
  extern void bcopy();
  #  endif
+ #endif /* __FreeBSD__ */
  
  #  ifndef index
  #    ifdef HAS_INDEX
*** sim/spice/common/src/include/os_bsd.h.orig	Sat Jan 29 19:14:37 1994
--- sim/spice/common/src/include/os_bsd.h	Sun Dec 12 14:38:33 1999
***************
*** 8,19 ****
  
  #include "os_unix.h"
  
  #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_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>				*/
--- 8,23 ----
  
  #include "os_unix.h"
  
+ #ifndef __FreeBSD__
  #define HAS_NO_ATRIGH_DECL	/* if asinh( ) is not in math.h		*/
  #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_BCOPY		/* bcopy( ), bzero( )			*/
  #define HAS_BSDRANDOM		/* srandom( ) and random( )		*/
  #define HAS_BSDTTY		/* <sgtty.h>				*/
***************
*** 22,25 ****
  #define HAS_BSDRLIMIT		/* getrlimit( )				*/
  #define HAS_DUP2
  #define HAS_GETWD		/* getwd(buf)				*/
! #define HAS_STRINGS		/* use <strings.h> instead of <string.h> */
--- 26,35 ----
  #define HAS_BSDRLIMIT		/* getrlimit( )				*/
  #define HAS_DUP2
  #define HAS_GETWD		/* getwd(buf)				*/
! 
! #ifdef __FreeBSD__
! #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( )	*/
! #endif