pkgsrc/graphics/xfig/patches/patch-ae
2009-11-04 15:34:08 +00:00

34 lines
1.1 KiB
Text

$NetBSD: patch-ae,v 1.6 2009/11/04 15:34:08 gdt Exp $
--- fig.h.orig 2008-05-27 13:39:00.000000000 -0400
+++ fig.h
@@ -347,7 +347,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 */
@@ -365,7 +369,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()
@@ -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__) && !defined(__DARWIN__)
extern void srandom(int);
#endif