projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port: fix endian and byteswap compat on FreeBSD
[lttng-ust.git]
/
include
/
lttng
/
ust-endian.h
diff --git
a/include/lttng/ust-endian.h
b/include/lttng/ust-endian.h
index a512b02bf3719fc89f2126df72e5f46a5d93a194..763a447e6fcb16bfaa8f882f20caff5d24e66eb0 100644
(file)
--- a/
include/lttng/ust-endian.h
+++ b/
include/lttng/ust-endian.h
@@
-29,8
+29,12
@@
#if (defined(__linux__) || defined(__CYGWIN__))
#include <endian.h>
#if (defined(__linux__) || defined(__CYGWIN__))
#include <endian.h>
+#include <byteswap.h>
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__)
-#include <machine/endian.h>
+#include <sys/endian.h>
+#define bswap_16(x) bswap16(x)
+#define bswap_32(x) bswap32(x)
+#define bswap_64(x) bswap64(x)
#else
#error "Please add support for your OS."
#endif
#else
#error "Please add support for your OS."
#endif
This page took
0.024628 seconds
and
4
git commands to generate.