summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7657ae7)
Add a missing warning too.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#ifdef __linux__
#include <endian.h>
#ifdef __linux__
#include <endian.h>
+#elif defined(__FreeBSD__)
#include <machine/endian.h>
#else
#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 */
#endif
#endif /* _COMPAT_ENDIAN_H */
#if __linux__
LPOLLMSG = POLLMSG,
LPOLLRDHUP = POLLRDHUP,
#if __linux__
LPOLLMSG = POLLMSG,
LPOLLRDHUP = POLLRDHUP,
+#elif defined(__FreeBSD__)
LPOLLMSG = 0,
LPOLLRDHUP = 0,
LPOLLMSG = 0,
LPOLLRDHUP = 0,
+#else
+#error "Please add support for your OS."
#endif /* __linux__ */
LPOLLERR = POLLERR,
LPOLLHUP = POLLHUP | POLLNVAL,
#endif /* __linux__ */
LPOLLERR = POLLERR,
LPOLLHUP = POLLHUP | POLLNVAL,