commit
75181c4b1b6e046ae8561c486ced003a83b1a696 upstream.
Need to use #elif defined().
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
#ifdef __linux__
#include <endian.h>
#ifdef __linux__
#include <endian.h>
+#elif defined(__FreeBSD__)
#include <machine/endian.h>
#else
#error "Please add support for your OS into lttng/ust-endian.h."
#include <machine/endian.h>
#else
#error "Please add support for your OS into lttng/ust-endian.h."