Fix freebsd endian support
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 00:28:44 +0000 (19:28 -0500)
committerChristian Babeux <christian.babeux@efficios.com>
Tue, 27 Nov 2012 19:23:37 +0000 (14:23 -0500)
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>
include/lttng/ust-endian.h

index 085ff0728e0f7d6fbde7c43e07c4c7e8591ec195..7a69d808b2fbbbc1002fa5376faf042eb5e11979 100644 (file)
@@ -20,7 +20,7 @@
 
 #ifdef __linux__
 #include <endian.h>
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
 #include <machine/endian.h>
 #else
 #error "Please add support for your OS into lttng/ust-endian.h."
This page took 0.024859 seconds and 4 git commands to generate.