diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-05-24 18:50:33 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-05-24 18:50:33 +0400 |
commit | d002c587df7bad7b0223f7b51a662e112e1e4475 (patch) | |
tree | 6c7ee9089aaffe7310dc8cd4caf69bb1fd059537 | |
parent | 7a3a3f6b38eb5d2ad09997a9fd1aae4bed95fd3a (diff) | |
download | knot-d002c587df7bad7b0223f7b51a662e112e1e4475.tar.gz |
Port libknot/util/endian.h to illumos/solaris
-rw-r--r-- | debian/patches/dyson-endian.patch | 22 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/dyson-endian.patch b/debian/patches/dyson-endian.patch new file mode 100644 index 0000000..765ee80 --- /dev/null +++ b/debian/patches/dyson-endian.patch @@ -0,0 +1,22 @@ +Index: knot/src/libknot/util/endian.h +=================================================================== +--- knot.orig/src/libknot/util/endian.h 2014-05-24 14:03:58.309271227 +0400 ++++ knot/src/libknot/util/endian.h 2014-05-24 18:36:14.148607917 +0400 +@@ -46,6 +46,17 @@ + # define htobe16(x) OSSwapHostToBigInt16(x) + # define htobe32(x) OSSwapHostToBigInt32(x) + # define htobe64(x) OSSwapHostToBigInt64(x) ++#elif defined(__sun__) ++# ifndef __EXTENSIONS__ ++# define __EXTENSIONS__ 1 ++# endif ++# include <sys/byteorder.h> ++# define be16toh(x) ntohs(x) ++# define be32toh(x) ntohl(x) ++# define be64toh(x) ntohll(x) ++# define htobe16(x) htons(x) ++# define htobe32(x) htonl(x) ++# define htobe64(x) htonll(x) + #endif + + #endif /* _KNOT_ENDIAN_H_ */ diff --git a/debian/patches/series b/debian/patches/series index 50fb5c3..3b68cd7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ dyson-s_addr.patch dyson-tm_gmtoff.patch +dyson-endian.patch 0001-loosen-openssl-dependency.patch |