pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/netbsd-tap/files Make netbsd-tap compile on NetBSD...
details: https://anonhg.NetBSD.org/pkgsrc/rev/312ede4a16e5
branches: trunk
changeset: 499067:312ede4a16e5
user: cube <cube%pkgsrc.org@localhost>
date: Thu Sep 08 17:57:35 2005 +0000
description:
Make netbsd-tap compile on NetBSD 3.99.6+ (sysctl constification).
diffstat:
net/netbsd-tap/files/if_tap.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diffs (48 lines):
diff -r e7a97bbe26c7 -r 312ede4a16e5 net/netbsd-tap/files/if_tap.c
--- a/net/netbsd-tap/files/if_tap.c Thu Sep 08 17:55:52 2005 +0000
+++ b/net/netbsd-tap/files/if_tap.c Thu Sep 08 17:57:35 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tap.c,v 1.6 2005/06/10 15:06:33 cube Exp $ */
+/* $NetBSD: if_tap.c,v 1.7 2005/09/08 17:57:35 cube Exp $ */
/*
* Copyright (c) 2003, 2004 The NetBSD Foundation.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.6 2005/06/10 15:06:33 cube Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.7 2005/09/08 17:57:35 cube Exp $");
#if defined(_KERNEL_OPT)
#include "bpfilter.h"
@@ -91,6 +91,11 @@
static int tap_node;
static int tap_sysctl_handler(SYSCTLFN_PROTO);
SYSCTL_SETUP_PROTO(sysctl_tap_setup);
+#if __NetBSD_Version__ < 399000600
+# define __SYSCTL_CONST
+#else
+# define __SYSCTL_CONST const
+#endif
/*
* Since we're an Ethernet device, we need the 3 following
@@ -263,7 +268,7 @@
char enaddrstr[18];
uint32_t ui;
int error;
- struct sysctlnode *node;
+ __SYSCTL_CONST struct sysctlnode *node;
aprint_normal("%s: faking Ethernet device\n",
self->dv_xname);
@@ -1209,7 +1214,7 @@
*/
SYSCTL_SETUP(sysctl_tap_setup, "sysctl net.link.tap subtree setup")
{
- struct sysctlnode *node;
+ __SYSCTL_CONST struct sysctlnode *node;
int error = 0;
if ((error = sysctl_createv(clog, 0, NULL, NULL,
Home |
Main Index |
Thread Index |
Old Index