--- bin/ls/ls.c.orig	2011-04-30 19:09:36.000000000 +0200
+++ bin/ls/ls.c	2011-04-30 19:10:56.000000000 +0200
@@ -56,6 +56,10 @@
 #include <sys/stat.h>
 #include <sys/ioctl.h>
 
+#ifdef __NetBSD__
+#include <sys/param.h>
+#endif
+
 #include <dirent.h>
 #include <err.h>
 #include <errno.h>
