diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2016-04-28 16:30:03 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2016-04-28 16:30:03 +0000 |
commit | 07ea8aa7bf0f57c7077f64e120237261368e36b1 (patch) | |
tree | a9cee36ccf4c5d8f8d59b2e5d174562c503a0054 /sysutils/afflib | |
parent | 8391d67469025e20cc7c68665e481f4a5e0e8fd7 (diff) |
Use bswap* from sys/endian.h instead of defining own versions
This fixes build with libc++ 3.8.0
PR: 209100
Submitted by: dim@
Notes
Notes:
svn path=/head/; revision=414183
Diffstat (limited to 'sysutils/afflib')
-rw-r--r-- | sysutils/afflib/files/patch-lib_qemu_bswap.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/afflib/files/patch-lib_qemu_bswap.h b/sysutils/afflib/files/patch-lib_qemu_bswap.h new file mode 100644 index 000000000000..795cfd922984 --- /dev/null +++ b/sysutils/afflib/files/patch-lib_qemu_bswap.h @@ -0,0 +1,20 @@ +--- lib/qemu/bswap.h.orig 2014-11-08 06:32:35 UTC ++++ lib/qemu/bswap.h +@@ -5,6 +5,9 @@ + + #include <inttypes.h> + ++#ifdef __FreeBSD__ ++#include <sys/endian.h> ++#else + #ifdef HAVE_BYTESWAP_H + #include <byteswap.h> + #else +@@ -57,6 +60,7 @@ static inline uint64_t bswap64(uint64_t + { + return bswap_64(x); + } ++#endif + + static inline void bswap16s(uint16_t *s) + { |