aboutsummaryrefslogtreecommitdiff
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-01-16 20:46:40 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-01-16 20:46:40 +0000
commit6fa647788eef6ee6ccca8eb93e001da29ab11abc (patch)
tree64cd29608156a08ba524868fd836d60d116f36ad /contrib/netbsd-tests
parentacf66ea77b4aebc8b773251a9f0d6052bd0c4333 (diff)
downloadsrc-6fa647788eef6ee6ccca8eb93e001da29ab11abc.tar.gz
src-6fa647788eef6ee6ccca8eb93e001da29ab11abc.zip
Reintroduce libutil.h #include for FreeBSD only for fparseln
Notes
Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312313
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c7
-rw-r--r--contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c7
2 files changed, 14 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 074e4ddf3b2d..d53d2d9594a1 100644
--- a/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
+++ b/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
@@ -34,6 +34,13 @@
#include <stdlib.h>
#include <unistd.h>
#include <err.h>
+#ifdef __FreeBSD__
+/*
+ * Needed to avoid libutil.h pollution in stdio.h, which causes grief with
+ * with hexdump(3) in lib/libc/db/h_hash.c
+ */
+#include <libutil.h>
+#endif
#define WS "\t\n "
#define debug 0
diff --git a/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c b/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c
index 17258f5fef91..c7cd83e54a3a 100644
--- a/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c
+++ b/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c
@@ -36,6 +36,13 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#ifdef __FreeBSD__
+/*
+ * Needed to avoid libutil.h pollution in stdio.h, which causes grief with
+ * with hexdump(3) in lib/libc/db/h_hash.c
+ */
+#include <libutil.h>
+#endif
#define SKIPWS(p) while (isspace((int)(*p))) p++
#define WS "\t\n "