mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 19:30:47 -04:00
47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
$NetBSD: patch-ac,v 1.10 2011/06/01 11:20:29 wiz Exp $
|
|
|
|
Fix for NetBSD.
|
|
|
|
--- include/system.h.orig 2003-12-07 15:39:13.000000000 -0800
|
|
+++ include/system.h
|
|
@@ -79,10 +79,10 @@ typedef long off_t;
|
|
# 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(__APPLE__)) || defined(RANDOM)
|
|
E void FDECL(srandom, (unsigned int));
|
|
# else
|
|
-# if !defined(bsdi) && !defined(__FreeBSD__)
|
|
+# if !defined(bsdi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__APPLE__)
|
|
E int FDECL(srandom, (unsigned int));
|
|
# endif
|
|
# endif
|
|
@@ -132,7 +132,7 @@ E void FDECL(perror, (const char *));
|
|
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 @@ E size_t FDECL(strlen, (const char *));
|
|
# ifdef HPUX
|
|
E unsigned int FDECL(strlen, (char *));
|
|
# else
|
|
-# if !(defined(ULTRIX_PROTO) && defined(__GNUC__))
|
|
+# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) && !defined(__NetBSD__)
|
|
E int FDECL(strlen, (const char *));
|
|
# endif
|
|
# endif /* HPUX */
|
|
@@ -521,7 +521,7 @@ E struct tm *FDECL(localtime, (const tim
|
|
# endif
|
|
# endif
|
|
|
|
-# if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
|
|
+# if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE)) || defined(__NetBSD__)
|
|
E time_t FDECL(time, (time_t *));
|
|
# else
|
|
E long FDECL(time, (time_t *));
|