$NetBSD: patch-ao,v 1.1 2006/03/05 08:17:49 christos Exp $

--- system.c	2006-01-12 16:21:06.000000000 -0500
+++ system.c	2006-03-04 19:27:22.000000000 -0500
@@ -568,7 +568,7 @@
 
 #endif /* SUNOS4 */
 
-#if defined(SUNOS4) || defined(FREEBSD)
+#if defined(SUNOS4) || defined(ALLBSD)
 static const struct xlat pathconflimits[] = {
 #ifdef	_PC_LINK_MAX
 	{ _PC_LINK_MAX,	"_PC_LINK_MAX"	},	/* max links to file/dir */
@@ -624,7 +624,7 @@
 	return 0;
 }
 
-#endif /* SUNOS4 || FREEBSD */
+#endif /* SUNOS4 || ALLBSD */
 
 #ifdef SVR4
 
@@ -1976,7 +1976,8 @@
 }
 #endif
 
-#ifdef FREEBSD
+#ifdef ALLBSD
+#include <sys/param.h>
 #include <sys/sysctl.h>
 
 int sys___sysctl(tcp)
