$NetBSD: patch-ab,v 1.1.1.1 2011/04/19 11:16:07 tnn Exp $ --- nsprpub/pr/include/md/_netbsd.h.orig 2010-03-15 14:56:04.000000000 +0000 +++ nsprpub/pr/include/md/_netbsd.h @@ -79,7 +79,7 @@ #define HAVE_DLL #define USE_DLFCN #define _PR_HAVE_SOCKADDR_LEN -#define _PR_NO_LARGE_FILES +#define _PR_HAVE_LARGE_OFF_T #define _PR_STAT_HAS_ST_ATIMESPEC #define _PR_POLL_AVAILABLE #define _PR_USE_POLL @@ -94,6 +94,12 @@ #define _PR_INET6_PROBE #endif +#if __NetBSD_Version__ >= 106370000 +/* NetBSD 1.6ZK */ +#define _PR_HAVE_GETPROTO_R +#define _PR_HAVE_GETPROTO_R_INT +#endif + #define USE_SETJMP #ifndef _PR_PTHREADS @@ -107,6 +113,8 @@ #define JB_SP_INDEX 2 #elif defined(__mips__) #define JB_SP_INDEX 4 +#elif defined(__amd64__) +#define JB_SP_INDEX 6 #elif defined(__alpha__) #define JB_SP_INDEX 34 #elif defined(__arm32__)