pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libkver/files/lib Adapt sysctl prototype for ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46dd72f52b5e
branches:  trunk
changeset: 511130:46dd72f52b5e
user:      cube <cube%pkgsrc.org@localhost>
date:      Sun Apr 09 17:47:46 2006 +0000

description:
Adapt sysctl prototype for -current.  The boundary is chosen as 3.99.16.
The broken area is -current between Feb 24th 2006 and Mar 2nd 2006.

Fixes PR#33226 by Cesar Catrian Carreno.

diffstat:

 pkgtools/libkver/files/lib/kver.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 9fe72dabfe3b -r 46dd72f52b5e pkgtools/libkver/files/lib/kver.c
--- a/pkgtools/libkver/files/lib/kver.c Sun Apr 09 17:16:56 2006 +0000
+++ b/pkgtools/libkver/files/lib/kver.c Sun Apr 09 17:47:46 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kver.c,v 1.7 2005/03/30 06:41:01 seb Exp $     */
+/*     $NetBSD: kver.c,v 1.8 2006/04/09 17:47:46 cube Exp $    */
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -53,6 +53,12 @@
                }                                                       \
        }
 
+#if __NetBSD_Version__ >= 399001600
+#define SYSCTL_CONST   const
+#else
+#define SYSCTL_CONST
+#endif
+
 static int
 str2osrevision(char *s)
 {
@@ -153,8 +159,8 @@
 }
 
 int
-sysctl(int *name, u_int namelen, void *oldp, size_t * oldlenp, const void *newp,
-    size_t newlen)
+sysctl(SYSCTL_CONST int *name, u_int namelen, void *oldp, size_t * oldlenp,
+    const void *newp, size_t newlen)
 {
        _DIAGASSERT(name != NULL);
 



Home | Main Index | Thread Index | Old Index