diff options
author | hasso <hasso@pkgsrc.org> | 2009-07-20 03:53:10 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-07-20 03:53:10 +0000 |
commit | 80470446027f32ff39b157c552f1d9baf499ffe6 (patch) | |
tree | 5abccacd69fb179872b98d4e28f8dbf3e46db6a0 /graphics/xfig/patches | |
parent | 8496223bddd33a91f42741f300c6feb25b61e8b1 (diff) | |
download | pkgsrc-80470446027f32ff39b157c552f1d9baf499ffe6.tar.gz |
Make it build on recent DragonFly.
Diffstat (limited to 'graphics/xfig/patches')
-rw-r--r-- | graphics/xfig/patches/patch-ae | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/graphics/xfig/patches/patch-ae b/graphics/xfig/patches/patch-ae index 1c71778a381..b5516ccc80f 100644 --- a/graphics/xfig/patches/patch-ae +++ b/graphics/xfig/patches/patch-ae @@ -1,8 +1,8 @@ -$NetBSD: patch-ae,v 1.4 2009/06/22 18:29:33 drochner Exp $ +$NetBSD: patch-ae,v 1.5 2009/07/20 03:53:10 hasso Exp $ ---- fig.h.orig 2006-02-24 21:15:16.000000000 +0100 -+++ fig.h -@@ -356,7 +356,11 @@ extern char *getenv(); +--- fig.h.orig 2008-05-27 20:39:00 +0300 ++++ fig.h 2009-07-19 22:14:08 +0300 +@@ -347,7 +347,11 @@ extern char *getenv(); #define signof(a) (((a) < 0) ? -1 : 1) #ifdef USE_INLINE @@ -14,7 +14,7 @@ $NetBSD: patch-ae,v 1.4 2009/06/22 18:29:33 drochner Exp $ #else #define INLINE #endif /* USE_INLINE */ -@@ -374,7 +378,7 @@ extern double drand48(); +@@ -365,7 +369,7 @@ extern double drand48(); #define random() lrand48() #define frandom() drand48() @@ -23,3 +23,12 @@ $NetBSD: patch-ae,v 1.4 2009/06/22 18:29:33 drochner Exp $ #define srandom(seed) srand48((long)(seed)) #define random() lrand48() #define frandom() drand48() +@@ -374,7 +378,7 @@ extern double drand48(); + extern long random(); + extern void srandom(unsigned int); + +-#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__GLIBC__) ++#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__GLIBC__) && !defined(__DragonFly__) + extern void srandom(int); + + #endif |