pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/25487 patch-af forgotten to include <sys/param.h>
The following reply was made to PR pkg/25487; it has been noted by GNATS.
From: mito%st.rim.gr.jp@localhost
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: pkg/25487 patch-af forgotten to include <sys/param.h>
Date: Tue, 6 Dec 2005 11:43:33 +0000 (UTC)
>Submitter-Id: net
>Originator: Mito Osamu
>Organization:
>Confidential: no
>Synopsis: pkg/25487 patch-af forgotten to include <sys/param.h>
>Severity: non-critical
>Priority: medium
>Category: pkg
>Class: sw-bug
>Release:
>Environment:
>Description:
pkg/25487 pkgsrc/www/thttpd/patches/patch-af
This patch uses the value of "__NetBSD_Version__".
Must include <sys/param.h> to use this value.
>How-To-Repeat:
>Fix:
patch-af add 4lines.
*** mmc.c.orig Fri Dec 26 04:06:35 2003
--- mmc.c Tue Dec 6 20:22:55 2005
***************
*** 38,43 ****
--- 38,51 ----
#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 */
Home |
Main Index |
Thread Index |
Old Index