bsd compat: add missing #elif -> #elif defined()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 12:22:04 +0000 (07:22 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 12:22:04 +0000 (07:22 -0500)
Add a missing warning too.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/compat/endian.h
src/common/compat/poll.h

index b9382baaa560984ad18bce3f84ea0f765e418cda..b4426eb8405ce53d38fdb7afc35943379ae28dd9 100644 (file)
 
 #ifdef __linux__
 #include <endian.h>
 
 #ifdef __linux__
 #include <endian.h>
-#elif __FreeBSD__
+#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 */
index ded35410d48dd3d7232608746e46f6d334dd7733..bb046c3427af53f49a76997874a3d43b1808ba37 100644 (file)
@@ -182,9 +182,11 @@ enum {
 #if __linux__
        LPOLLMSG = POLLMSG,
        LPOLLRDHUP = POLLRDHUP,
 #if __linux__
        LPOLLMSG = POLLMSG,
        LPOLLRDHUP = POLLRDHUP,
-#elif __FreeBSD__
+#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,
This page took 0.028169 seconds and 4 git commands to generate.