diff options
Diffstat (limited to 'x11/gnome-applets/patches/patch-af')
-rw-r--r-- | x11/gnome-applets/patches/patch-af | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/x11/gnome-applets/patches/patch-af b/x11/gnome-applets/patches/patch-af index 153b7c6e470..2d1ed7ee670 100644 --- a/x11/gnome-applets/patches/patch-af +++ b/x11/gnome-applets/patches/patch-af @@ -1,7 +1,7 @@ -$NetBSD: patch-af,v 1.1 2000/07/30 08:08:14 jlam Exp $ +$NetBSD: patch-af,v 1.2 2001/04/07 10:58:36 rh Exp $ ---- modemlights/modemlights.c.orig Thu May 4 08:24:02 2000 -+++ modemlights/modemlights.c Sun Jul 30 02:24:50 2000 +--- modemlights/modemlights.c.orig Tue Jan 30 20:29:17 2001 ++++ modemlights/modemlights.c @@ -32,7 +32,7 @@ #include <ctype.h> #include <sys/stat.h> @@ -11,28 +11,3 @@ $NetBSD: patch-af,v 1.1 2000/07/30 08:08:14 jlam Exp $ #include <net/if_ppp.h> #endif -@@ -271,13 +271,13 @@ - struct ppp_stats stats; - - memset(&ifreq, 0, sizeof(ifreq)); --#if defined(__FreeBSD__) || defined(__OpenBSD__) -+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) - strncpy(ifreq.ifr_name, device_name, IFNAMSIZ); - #else - strncpy(ifreq.ifr_ifrn.ifrn_name, device_name, IFNAMSIZ); - #endif /* FreeBSD or OpenBSD */ - ifreq.ifr_ifru.ifru_data = (caddr_t)&stats; --#if defined(__FreeBSD__) || defined(__OpenBSD__) -+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) - if ((ioctl(ip_socket,SIOCGPPPSTATS,(caddr_t)&ifreq) < 0)) - #else - #ifdef SIOCDEVPRIVATE -@@ -286,7 +286,7 @@ - *in = *out = 0; - return FALSE; - #endif --#endif /* FreeBSD or OpenBSD */ -+#endif /* FreeBSD or OpenBSD or NetBSD */ - { - /* failure means ppp is not up */ - *in = *out = 0; |