Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 8970eb429b33b122f6809970380866e77772211f Mon Sep 17 00:00:00 2001
- From: Daniel Hilst <danielhislt@gmail.com>
- Date: Thu, 29 Nov 2012 17:26:01 -0200
- Subject: [PATCH 2/2] Surround htonll with #if !HAVE_HTONLL #endif
- ---
- 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 acbe93f..3196a66 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 */
- +#if !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) /* {{{ */
- {
- --
- 1.7.11.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement