pkgsrc/devel/pwlib/patches/patch-ah
2000-08-28 22:29:34 +00:00

16 lines
468 B
Text

$NetBSD: patch-ah,v 1.1 2000/08/28 22:29:35 mjl Exp $
--- src/ptlib/unix/switch.cxx.orig Mon Aug 28 23:27:44 2000
+++ src/ptlib/unix/switch.cxx Mon Aug 28 23:29:00 2000
@@ -79,8 +79,10 @@
#endif
#endif
-#if defined(P_FREEBSD) || defined(P_OPENBSD)
+#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)
#define SET_STACK context[0]._jb[2] = (int)stackTop-16;
+#include <sys/mman.h>
+#define USE_MMAP MAP_ANON | MAP_PRIVATE
#endif
#ifdef __BEOS__