summaryrefslogtreecommitdiff
path: root/cad/spice/patches/patch-ab
blob: 06d090801bcbd58a5fdddbee0dc955e13efa08f2 (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
$NetBSD: patch-ab,v 1.4 2006/01/06 18:21:44 joerg Exp $

--- src/lib/fte/resource.c.orig	1993-04-28 22:39:03.000000000 +0000
+++ src/lib/fte/resource.c
@@ -12,6 +12,7 @@ Author: 1985 Wayne A. Christopher, U. C.
 #include "ftedefs.h"
 
 #include <sys/types.h>
+#include <unistd.h>
 
 #ifdef HAS_BSDRLIMIT
 #  include <sys/time.h>
@@ -144,7 +145,7 @@ ft_ckspace()
 
 #    endif
 
-    usage = sbrk(0) - enddata;
+    usage = (char *)sbrk(0) - enddata;
 
 #  endif
 
@@ -365,11 +366,12 @@ static void *
 baseaddr( )
 {
 	char *low, *high, *at;
-	char *sbrk( );
 	long x;
 	SIGNAL_TYPE	(*orig_signal)( );
 
+#if !(defined(__FreeBSD__) || defined(__NetBSD__))
 	if (getenv("SPICE_NO_DATASEG_CHECK"))
+#endif
 		return 0;
 
 	low = 0;