Add a missing warning too.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#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 */
#if __linux__
LPOLLMSG = POLLMSG,
LPOLLRDHUP = POLLRDHUP,
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
LPOLLMSG = 0,
LPOLLRDHUP = 0,
+#else
+#error "Please add support for your OS."
#endif /* __linux__ */
LPOLLERR = POLLERR,
LPOLLHUP = POLLHUP | POLLNVAL,