pkgsrc/games/nethack-qt/patches/patch-ac
joerg 11afaf3c3e Add DragonFly support. When linking with libqt-mt, explicitly link in
the thread libraries, this is needed for FreeBSD4-style -pthread.
2005-12-19 19:45:02 +00:00

49 lines
1.7 KiB
Text

$NetBSD: patch-ac,v 1.14 2005/12/19 19:45:02 joerg Exp $
--- include/system.h.orig 2003-08-30 03:07:23.000000000 +0300
+++ include/system.h 2003-09-02 02:49:23.000000000 +0300
@@ -79,10 +79,10 @@
# if !defined(__SC__) && !defined(LINUX)
E long NDECL(random);
# endif
-# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM)
+# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)) || defined(RANDOM)
E void FDECL(srandom, (unsigned int));
# else
-# if !defined(bsdi) && !defined(__FreeBSD__)
+# if !defined(bsdi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
E int FDECL(srandom, (unsigned int));
# endif
# endif
@@ -132,7 +132,7 @@
E void FDECL(qsort, (genericptr_t,size_t,size_t,
int(*)(const genericptr,const genericptr)));
#else
-# if defined(BSD) || defined(ULTRIX)
+# if defined(BSD) || defined(ULTRIX) && !defined(__NetBSD__)
E int qsort();
# else
# if !defined(LATTICE) && !defined(AZTEC_50)
@@ -421,7 +421,7 @@
# ifdef HPUX
E unsigned int FDECL(strlen, (char *));
# else
-# if !(defined(ULTRIX_PROTO) && defined(__GNUC__))
+# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) && !defined(__NetBSD__) && !defined(__DragonFly__)
E int FDECL(strlen, (const char *));
# endif
# endif /* HPUX */
@@ -521,11 +521,13 @@
# endif
# endif
+#ifndef __NetBSD__
# if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
E time_t FDECL(time, (time_t *));
# else
E long FDECL(time, (time_t *));
# endif /* ULTRIX */
+#endif
#ifdef VMS
/* used in makedefs.c, but missing from gcc-vms's <time.h> */