]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
rrd_daemon: move include of arpa/inet.h to avoid use on Windows
authorPeter A. Bigot <pab@pabigot.com>
Tue, 20 May 2014 15:08:15 +0000 (10:08 -0500)
committerPeter A. Bigot <pab@pabigot.com>
Tue, 20 May 2014 15:11:18 +0000 (10:11 -0500)
arpa/inet.h may not be available on Windows systems; since I can't test
that, avoid trying to include it there.  Since the code that depends on
it is conditional on a define that would be provided by it, there should
be no impact from its absence except that somebody who uses Windows
would have to rework the fix for ipv4-over-ipv6 for that platform.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
src/rrd_daemon.c

index 742d258f3478e10d44ce1a6c74a30ed3b7b38629..08f97595e8f0e619af79e36dde4c1f8778928d7f 100644 (file)
@@ -78,6 +78,7 @@
 #include <strings.h>
 #include <inttypes.h>
 #include <sys/socket.h>
+#include <arpa/inet.h>
 
 #else
 
@@ -92,7 +93,6 @@
 #include <signal.h>
 #include <sys/un.h>
 #include <netdb.h>
-#include <arpa/inet.h>
 #include <poll.h>
 #include <syslog.h>
 #include <pthread.h>