Advertisement
danielhilst

AIX compile collectd-5.2.0

Nov 29th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.95 KB | None | 0 0
  1. From 8970eb429b33b122f6809970380866e77772211f Mon Sep 17 00:00:00 2001
  2. From: Daniel Hilst <danielhislt@gmail.com>
  3. Date: Thu, 29 Nov 2012 17:26:01 -0200
  4. Subject: [PATCH 2/2] Surround htonll with #if !HAVE_HTONLL #endif
  5.  
  6. ---
  7. src/libcollectdclient/network_buffer.c | 2 ++
  8.  1 file changed, 2 insertions(+)
  9.  
  10. diff --git a/src/libcollectdclient/network_buffer.c b/src/libcollectdclient/network_buffer.c
  11. index acbe93f..3196a66 100644
  12. --- a/src/libcollectdclient/network_buffer.c
  13. +++ b/src/libcollectdclient/network_buffer.c
  14. @@ -146,6 +146,7 @@ static _Bool have_gcrypt (void) /* {{{ */
  15.  #endif
  16.  } /* }}} _Bool have_gcrypt */
  17.  
  18. +#if !HAVE_HTONLL
  19.  static uint64_t htonll (uint64_t val) /* {{{ */
  20.  {
  21.    static int config = 0;
  22. @@ -175,6 +176,7 @@ static uint64_t htonll (uint64_t val) /* {{{ */
  23.  
  24.    return ((((uint64_t) lo) << 32) | ((uint64_t) hi));
  25.  } /* }}} uint64_t htonll */
  26. +#endif
  27.  
  28.  static double htond (double val) /* {{{ */
  29.  {
  30. --
  31. 1.7.11.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement