From: Mathieu Desnoyers Date: Thu, 23 Feb 2012 12:22:04 +0000 (-0500) Subject: bsd compat: add missing #elif -> #elif defined() X-Git-Tag: v2.0.0-rc3~41 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b2c3836f9872dfe8c0328c03fa5a01efe0ed6017;p=lttng-tools.git bsd compat: add missing #elif -> #elif defined() Add a missing warning too. Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/compat/endian.h b/src/common/compat/endian.h index b9382baaa..b4426eb84 100644 --- a/src/common/compat/endian.h +++ b/src/common/compat/endian.h @@ -20,10 +20,10 @@ #ifdef __linux__ #include -#elif __FreeBSD__ +#elif defined(__FreeBSD__) #include #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 */ diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index ded35410d..bb046c342 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -182,9 +182,11 @@ enum { #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,