zeromq plugin: Include <arpa/inet.h> for htons().
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 6 Nov 2010 11:21:30 +0000 (12:21 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 6 Nov 2010 11:21:30 +0000 (12:21 +0100)
src/zeromq.c

index 0c8e352..80a9850 100644 (file)
 #include "utils_cache.h"
 #include "network.h"
 
+/* for htons() */
+#if HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
 #include <pthread.h>
 #include <zmq.h>