$NetBSD$

--- main/socket.cc.orig	2005-10-30 13:02:28.000000000 +0000
+++ main/socket.cc
@@ -9,7 +9,7 @@
  *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#if (defined(__unix__) || defined(unix) || defined(__NetBSD__)) && !defined(USG)
 #include <sys/param.h>
 #endif
 #include <stdio.h>
