From f522f2111990f89c09507aa867ad63bbc44d9b7a Mon Sep 17 00:00:00 2001 From: gkos Date: Wed, 13 Mar 2013 13:19:04 -0300 Subject: [PATCH] src/libcollectdclient/network_buffer.c check for htonll exitence before defining it. I have to to this to get it compiled on AIX6 Signed-off-by: Florian Forster --- src/libcollectdclient/network_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcollectdclient/network_buffer.c b/src/libcollectdclient/network_buffer.c index acbe93f5..7b066204 100644 --- a/src/libcollectdclient/network_buffer.c +++ b/src/libcollectdclient/network_buffer.c @@ -146,6 +146,7 @@ static _Bool have_gcrypt (void) /* {{{ */ #endif } /* }}} _Bool have_gcrypt */ +#ifndef HAVE_HTONLL static uint64_t htonll (uint64_t val) /* {{{ */ { static int config = 0; @@ -175,6 +176,7 @@ static uint64_t htonll (uint64_t val) /* {{{ */ return ((((uint64_t) lo) << 32) | ((uint64_t) hi)); } /* }}} uint64_t htonll */ +#endif static double htond (double val) /* {{{ */ { -- 2.30.2