mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
20 lines
365 B
C
20 lines
365 B
C
--- lib/qemu/bswap.h.orig 2017-02-12 23:23:49 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)
|
|
{
|