pkgsrc/cad/spice/patches/patch-ab
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

35 lines
729 B
Text

$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;