$NetBSD: patch-ac,v 1.5 1999/03/08 16:40:57 tron Exp $ --- applets/modemlights/modemlights.c.orig Mon Feb 8 17:20:52 1999 +++ applets/modemlights/modemlights.c Mon Mar 8 15:23:45 1999 @@ -32,7 +32,7 @@ #include #include -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) || defined(__NetBSD__) #include #endif @@ -249,13 +249,13 @@ struct ppp_stats stats; memset(&ifreq, 0, sizeof(ifreq)); -#if defined(__FreeBSD__) || defined(__OpenBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 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(__NetBSD__) || defined(__OpenBSD__) if ((ioctl(ip_socket,SIOCGPPPSTATS,(caddr_t)&ifreq) < 0)) #else #ifdef SIOCDEVPRIVATE @@ -264,7 +264,7 @@ *in = *out = 0; return FALSE; #endif -#endif /* FreeBSD or OpenBSD */ +#endif /* FreeBSD or NetBSD or OpenBSD */ { /* failure means ppp is not up */ *in = *out = 0;