summaryrefslogtreecommitdiff
path: root/graphics/xfig/patches/patch-ae
blob: 1c71778a381d99d43b1e22a11ee37e4af6bc791f (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
$NetBSD: patch-ae,v 1.4 2009/06/22 18:29:33 drochner Exp $

--- fig.h.orig	2006-02-24 21:15:16.000000000 +0100
+++ fig.h
@@ -356,7 +356,11 @@ extern char *getenv();
 #define		signof(a)	(((a) < 0) ? -1 : 1)
 
 #ifdef USE_INLINE
+#  if defined(__SUNPRO_C)
+#    define INLINE inline
+#  else
 #define INLINE __inline
+#  endif
 #else
 #define INLINE
 #endif /* USE_INLINE */
@@ -374,7 +378,7 @@ extern	double		drand48();
 #define	random()	lrand48()
 #define	frandom()	drand48()
 
-#elif defined(BSD)  /* not SYSV/SVR4, check for BSD */
+#elif defined(BSD) || defined(__NetBSD__)  /* not SYSV/SVR4, check for BSD */
 #define	srandom(seed)	srand48((long)(seed))
 #define	random()	lrand48()
 #define	frandom()	drand48()