Files
pkgsrc-ng/www/thttpd/patches/patch-af
2013-09-26 17:14:40 +02:00

20 lines
409 B
Plaintext

$NetBSD: patch-af,v 1.4 2005/12/06 14:09:29 rillig Exp $
--- mmc.c.orig Wed Jun 29 19:50:47 2005
+++ mmc.c Tue Dec 6 15:06:34 2005
@@ -38,6 +38,14 @@
#include <syslog.h>
#include <errno.h>
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#endif
+
+#if (defined(__NetBSD__) && __NetBSD_Version__ <= 105120000)
+#undef HAVE_MMAP
+#endif
+
#ifdef HAVE_MMAP
#include <sys/mman.h>
#endif /* HAVE_MMAP */