$NetBSD: patch-ab,v 1.3 2006/02/22 16:13:48 joerg Exp $ --- network.c.orig 2006-02-22 16:05:33.000000000 +0000 +++ network.c @@ -89,7 +89,7 @@ char *IFAddr(char *IFName, int dest) #define AddrOpen popen("/usr/ucb/netstat -nr", "r") #define AddrScanf sscanf(routeLine, "%*s %*s %*s %*s %*s %s", IF) #define AddrClose while (fgets(routeLine,128,infofp) != NULL); pclose(infofp) -#elif defined(SUNOS5x) || defined(__FreeBSD__) +#elif defined(SUNOS5x) || defined(__FreeBSD__) || defined(__DragonFly__) #define AddrOpen popen("/usr/bin/netstat -nr", "r") #define AddrScanf sscanf(routeLine, "%*s %*s %*s %*s %*s %s", IF) #define AddrClose while (fgets(routeLine,128,infofp) != NULL); pclose(infofp)