projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2725 from RafaelMarinheiro/fix_grpc_query_values
[collectd.git]
/
src
/
libcollectdclient
/
network_buffer.c
diff --git
a/src/libcollectdclient/network_buffer.c
b/src/libcollectdclient/network_buffer.c
index
373dd2b
..
44d93e0
100644
(file)
--- a/
src/libcollectdclient/network_buffer.c
+++ b/
src/libcollectdclient/network_buffer.c
@@
-24,6
+24,10
@@
* Florian octo Forster <octo at collectd.org>
**/
* Florian octo Forster <octo at collectd.org>
**/
+#ifdef WIN32
+#include "gnulib_config.h"
+#endif
+
#include "config.h"
#include <arpa/inet.h> /* htons */
#include "config.h"
#include <arpa/inet.h> /* htons */
@@
-156,7
+160,7
@@
static bool have_gcrypt(void) /* {{{ */
#ifndef HAVE_HTONLL
static uint64_t htonll(uint64_t val) /* {{{ */
{
#ifndef HAVE_HTONLL
static uint64_t htonll(uint64_t val) /* {{{ */
{
- static int config
= 0
;
+ static int config;
uint32_t hi;
uint32_t lo;
uint32_t hi;
uint32_t lo;
@@
-186,7
+190,7
@@
static uint64_t htonll(uint64_t val) /* {{{ */
static double htond(double val) /* {{{ */
{
static double htond(double val) /* {{{ */
{
- static int config
= 0
;
+ static int config;
union {
uint8_t byte[8];
union {
uint8_t byte[8];