Reintroduce libutil.h #include for FreeBSD only for fparseln

This commit is contained in:
Enji Cooper 2017-01-16 20:46:40 +00:00
parent acf66ea77b
commit 6fa647788e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312313
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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 "