summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c b/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
index 074e4dd..58ecd96 100644
--- a/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
+++ b/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
@@ -34,6 +34,9 @@
#include <stdlib.h>
#include <unistd.h>
#include <err.h>
+#if defined(__FreeBSD__)
+#include <libutil.h>
+#endif
#define WS "\t\n "
#define debug 0
OpenPOWER on IntegriCloud