From b2c3836f9872dfe8c0328c03fa5a01efe0ed6017 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 23 Feb 2012 07:22:04 -0500 Subject: [PATCH] bsd compat: add missing #elif -> #elif defined() Add a missing warning too. Signed-off-by: Mathieu Desnoyers --- src/common/compat/endian.h | 4 ++-- src/common/compat/poll.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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, -- 2.34.1