port: fix endian and byteswap compat on FreeBSD
[deliverable/lttng-ust.git] / include / lttng / ust-endian.h
index a512b02bf3719fc89f2126df72e5f46a5d93a194..763a447e6fcb16bfaa8f882f20caff5d24e66eb0 100644 (file)
 
 #if (defined(__linux__) || defined(__CYGWIN__))
 #include <endian.h>
+#include <byteswap.h>
 #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
This page took 0.023029 seconds and 5 git commands to generate.