X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fnetwork_buffer.c;h=44d93e07606921e476f8e2ecc6b9078ecc56470b;hb=9f8dc5668faf5432dcb1430017bd7a1c383c2453;hp=373dd2b7ecf666ccf6a7d10534b1faa96cd1211c;hpb=6e41c3b1f024d7944e5e8010a87933555c662474;p=collectd.git diff --git a/src/libcollectdclient/network_buffer.c b/src/libcollectdclient/network_buffer.c index 373dd2b7..44d93e07 100644 --- a/src/libcollectdclient/network_buffer.c +++ b/src/libcollectdclient/network_buffer.c @@ -24,6 +24,10 @@ * Florian octo Forster **/ +#ifdef WIN32 +#include "gnulib_config.h" +#endif + #include "config.h" #include /* htons */ @@ -156,7 +160,7 @@ static bool have_gcrypt(void) /* {{{ */ #ifndef HAVE_HTONLL static uint64_t htonll(uint64_t val) /* {{{ */ { - static int config = 0; + static int config; uint32_t hi; uint32_t lo; @@ -186,7 +190,7 @@ static uint64_t htonll(uint64_t val) /* {{{ */ static double htond(double val) /* {{{ */ { - static int config = 0; + static int config; union { uint8_t byte[8];