From: Ruben Kerkhof Date: Wed, 4 Apr 2018 15:02:29 +0000 (+0200) Subject: Fix compilation on OpenBSD X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=34471c08182f3ea9f977d8cea1e8934e59e01ef4;p=collectd.git Fix compilation on OpenBSD CC src/libcollectdclient/libcollectdclient_la-server.lo In file included from src/libcollectdclient/server.c:37: /usr/include/net/if.h:121: error: field 'ifi_lastchange' has incomplete type /usr/include/net/if.h:369: error: field 'ifru_addr' has incomplete type /usr/include/net/if.h:370: error: field 'ifru_dstaddr' has incomplete type /usr/include/net/if.h:371: error: field 'ifru_broadaddr' has incomplete type /usr/include/net/if.h:399: error: field 'ifrau_addr' has incomplete type /usr/include/net/if.h:405: error: field 'ifra_dstaddr' has incomplete type /usr/include/net/if.h:407: error: field 'ifra_mask' has incomplete type /usr/include/net/if.h:450: error: field 'addr' has incomplete type /usr/include/net/if.h:451: error: field 'dstaddr' has incomplete type /usr/include/net/if.h:457: error: expected specifier-qualifier-list before 'sa_family_t' In file included from /usr/include/net/if.h:466, from src/libcollectdclient/server.c:37: /usr/include/net/if_arp.h:79: error: field 'arp_pa' has incomplete type /usr/include/net/if_arp.h:80: error: field 'arp_ha' has incomplete type *** Error 1 in . (Makefile:6017 'src/libcollectdclient/libcollectdclient_la-server.lo': @echo " CC " src/libcollectdclient/libcollectd...) *** Error 1 in /home/ruben/src/collectd (Makefile:4188 'all') --- diff --git a/src/libcollectdclient/server.c b/src/libcollectdclient/server.c index a81afda8..0e6d7779 100644 --- a/src/libcollectdclient/server.c +++ b/src/libcollectdclient/server.c @@ -34,13 +34,13 @@ #include "collectd/server.h" #include -#include -#include -#include #include +#include #include #include -#include +#include +#include +#include #include #define DEBUG(...) printf(__VA_ARGS__)