$NetBSD: patch-ab,v 1.1.1.1 2003/10/04 20:31:23 agc Exp $

--- socket.c.orig	2006-01-07 02:17:38.000000000 +0000
+++ socket.c
@@ -149,7 +149,7 @@ SCM l_hostinfo(name)
   struct in_addr inad;
   const char **argv;
   int i = 0;
-# ifndef linux
+# if !(defined(linux) || defined(__NetBSD__))
   if (UNBNDP(name)) {
     DEFER_INTS;
     SYSCALL(entry = gethostent(););
