summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7bd4362)
raw | patch | inline | side by side (parent: 7bd4362)
author | Ed Schouten <ed@80386.nl> | |
Sat, 17 Nov 2012 09:47:07 +0000 (10:47 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 17 Nov 2012 11:42:48 +0000 (12:42 +0100) |
On FreeBSD, we have to include <netinet/in.h> to get IN_MULTICAST(). We
don't need to include anything extra, as according to POSIX,
<netinet/in.h> also exposes htonl(). There is no need to include
<arpa/inet.h>.
Signed-off-by: Florian Forster <octo@collectd.org>
don't need to include anything extra, as according to POSIX,
<netinet/in.h> also exposes htonl(). There is no need to include
<arpa/inet.h>.
Signed-off-by: Florian Forster <octo@collectd.org>
src/libcollectdclient/network.c | patch | blob | history |
index 02a8e966b99d4b61ab604c2f2e591fb93c6300d6..6b6450c9b785171547c3fef30a50e28acd02340f 100644 (file)
* Florian octo Forster <octo at collectd.org>
**/
+#include "collectd.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netdb.h>
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
#include "collectd/network.h"
#include "collectd/network_buffer.h"