[Fakeroot-commits] [SCM] fakeroot branch, master, updated. debian/1.13-3-g23dbeac

Clint Adams schizo at debian.org
Tue Sep 29 02:36:58 UTC 2009


The following commit has been merged in the master branch:
commit f4879d735c66b16b7a7d21ee80c5148a4dc3d27a
Author: Clint Adams <schizo at debian.org>
Date:   Mon Sep 28 22:09:18 2009 -0400

    Apply patch from U.V. Ravindra to use native htonll()/ntohll() on Solaris.

diff --git a/message.h b/message.h
index 83ca184..648f4a8 100644
--- a/message.h
+++ b/message.h
@@ -11,6 +11,8 @@
 # endif
 #endif
 
+/* On Solaris, use the native htonll(n)/ntohll(n) */
+#if !defined(sun) && !defined(_NETINET_IN_H)
 #if __BYTE_ORDER == __BIG_ENDIAN
 # define htonll(n)  (n)
 # define ntohll(n)  (n)
@@ -18,6 +20,7 @@
 # define htonll(n)  ((((uint64_t) htonl(n)) << 32LL) | htonl((n) >> 32LL))
 # define ntohll(n)  ((((uint64_t) ntohl(n)) << 32LL) | ntohl((n) >> 32LL))
 #endif
+#endif /* !defined(sun) && !defined(_NETINET_IN_H) */
 
 #define FAKEROOTKEY_ENV "FAKEROOTKEY"
 

-- 
fakeroot



More information about the Fakeroot-commits mailing list