nameserv: adopt some include directives from sysincl.h

Move headers specific to name resolving to nameserv.c. This should hide
the system MIN/MAX macros from the rest of the code.
This commit is contained in:
Miroslav Lichvar 2018-09-20 15:08:04 +02:00
parent 948ecf8431
commit 4169e94b1d
2 changed files with 3 additions and 2 deletions

View file

@ -30,6 +30,9 @@
#include "sysincl.h"
#include <netdb.h>
#include <resolv.h>
#include "nameserv.h"
#include "util.h"

View file

@ -38,10 +38,8 @@
#include <grp.h>
#include <inttypes.h>
#include <math.h>
#include <netdb.h>
#include <netinet/in.h>
#include <pwd.h>
#include <resolv.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>