pkgsrc/www/thttpd/patches/patch-af
2005-12-06 14:09:29 +00:00

19 lines
409 B
Text

$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 */