summaryrefslogtreecommitdiff
path: root/cad/spice/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'cad/spice/patches/patch-ab')
-rw-r--r--cad/spice/patches/patch-ab49
1 files changed, 34 insertions, 15 deletions
diff --git a/cad/spice/patches/patch-ab b/cad/spice/patches/patch-ab
index 25dab97421d..06d090801bc 100644
--- a/cad/spice/patches/patch-ab
+++ b/cad/spice/patches/patch-ab
@@ -1,16 +1,35 @@
-$NetBSD: patch-ab,v 1.3 1999/10/01 17:05:15 dmcmahill Exp $
+$NetBSD: patch-ab,v 1.4 2006/01/06 18:21:44 joerg Exp $
-*** src/lib/fte/resource.c.orig Sun Mar 31 10:59:57 1996
---- src/lib/fte/resource.c Sun Mar 31 11:00:57 1996
-***************
-*** 369,375 ****
---- 369,377 ----
- long x;
- SIGNAL_TYPE (*orig_signal)( );
-
-+ #if !(defined(__FreeBSD__) || defined(__NetBSD__))
- if (getenv("SPICE_NO_DATASEG_CHECK"))
-+ #endif
- return 0;
-
- low = 0;
+--- 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;