]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
nameserv: adopt some include directives from sysincl.h
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Sep 2018 13:08:04 +0000 (15:08 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Sep 2018 13:34:24 +0000 (15:34 +0200)
Move headers specific to name resolving to nameserv.c. This should hide
the system MIN/MAX macros from the rest of the code.

nameserv.c
sysincl.h

index 1cb96086721c4d5bc4e92315de94e7ceec556349..90a65b19540d96e203e894280f91fd0e4fca5208 100644 (file)
@@ -30,6 +30,9 @@
 
 #include "sysincl.h"
 
+#include <netdb.h>
+#include <resolv.h>
+
 #include "nameserv.h"
 #include "util.h"
 
index 54431de278abc6b20aef4cc52a13d9732a80b762..296c5e6820058705c136813ab037624a10178314 100644 (file)
--- a/sysincl.h
+++ b/sysincl.h
 #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>