Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/cpl/trousers/dist/src/tcs/ps we only have <s...



details:   https://anonhg.NetBSD.org/src/rev/f7d09bcfda25
branches:  trunk
changeset: 773103:f7d09bcfda25
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 28 02:11:18 2012 +0000

description:
we only have <sys/endian.h> not <endian.h>

diffstat:

 crypto/external/cpl/trousers/dist/src/tcs/ps/ps_utils.c |  4 ++++
 crypto/external/cpl/trousers/dist/src/tcs/ps/tcsps.c    |  4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diffs (30 lines):

diff -r f6799ff3d9f9 -r f7d09bcfda25 crypto/external/cpl/trousers/dist/src/tcs/ps/ps_utils.c
--- a/crypto/external/cpl/trousers/dist/src/tcs/ps/ps_utils.c   Sat Jan 28 02:10:12 2012 +0000
+++ b/crypto/external/cpl/trousers/dist/src/tcs/ps/ps_utils.c   Sat Jan 28 02:11:18 2012 +0000
@@ -16,7 +16,11 @@
 #if defined(HAVE_BYTEORDER_H)
 #include <sys/byteorder.h>
 #elif defined(HTOLE_DEFINED)
+#ifdef __NetBSD__
+#include <sys/endian.h>
+#else
 #include <endian.h>
+#endif
 #define LE_16 htole16
 #define LE_32 htole32
 #define LE_64 htole64
diff -r f6799ff3d9f9 -r f7d09bcfda25 crypto/external/cpl/trousers/dist/src/tcs/ps/tcsps.c
--- a/crypto/external/cpl/trousers/dist/src/tcs/ps/tcsps.c      Sat Jan 28 02:10:12 2012 +0000
+++ b/crypto/external/cpl/trousers/dist/src/tcs/ps/tcsps.c      Sat Jan 28 02:11:18 2012 +0000
@@ -20,7 +20,11 @@
 #if defined (HAVE_BYTEORDER_H)
 #include <sys/byteorder.h>
 #elif defined (HTOLE_DEFINED)
+#ifdef __NetBSD__
+#include <sys/endian.h>
+#else
 #include <endian.h>
+#endif
 #define LE_16 htole16
 #define LE_32 htole32
 #define LE_64 htole64



Home | Main Index | Thread Index | Old Index