Added missing include of 'config.h'
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 21 May 2018 03:38:51 +0000 (10:38 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 21 May 2018 03:38:51 +0000 (10:38 +0700)
This adressed to solve compilation issue on Solaris platform:

In file included from src/libcollectdclient/network_parse.c:26:0,
                 from src/libcollectdclient/network_parse_test.c:32:
                 ./src/config.h:1517:0: error: "_FILE_OFFSET_BITS" redefined

src/libcollectdclient/collectd/network_buffer.h

index d66b815..ed8ab51 100644 (file)
@@ -27,6 +27,8 @@
 #ifndef LIBCOLLECTDCLIENT_NETWORK_BUFFER_H
 #define LIBCOLLECTDCLIENT_NETWORK_BUFFER_H 1
 
+#include "config.h"
+
 #include "collectd/network.h" /* for lcc_security_level_t */
 #include "collectd/types.h"