projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
619f181
)
src/common.c: Include <netinet/in.h> before <arpa/inet.h>.
author
Florian Forster
<octo@huhu.verplant.org>
Thu, 3 Feb 2011 22:42:28 +0000
(23:42 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Thu, 3 Feb 2011 22:42:28 +0000
(23:42 +0100)
src/common.c
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
142d797
..
6fdb441
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-39,11
+39,6
@@
# include <math.h>
#endif
-/* for ntohl and htonl */
-#if HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
-
/* for getaddrinfo */
#include <sys/types.h>
#include <sys/socket.h>
@@
-53,6
+48,11
@@
# include <netinet/in.h>
#endif
+/* for ntohl and htonl */
+#if HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+
#ifdef HAVE_LIBKSTAT
extern kstat_ctl_t *kc;
#endif