#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."
+#error "Please add support for your OS."
#endif
#endif /* _COMPAT_ENDIAN_H */