From mboxrd@z Thu Jan 1 00:00:00 1970 From: c.briere@samsung.com (Charles Briere) Date: Mon, 27 Oct 2014 20:49:28 +0000 Subject: [lttng-dev] [PATCH lttng-tools 05/24] Fix : Do not use gLibc specific macros In-Reply-To: <1414442926-14381-1-git-send-email-c.briere@samsung.com> References: <1414442926-14381-1-git-send-email-c.briere@samsung.com> Message-ID: <1414442926-14381-6-git-send-email-c.briere@samsung.com> From: Charles Briere Signed-off-by: Charles Briere --- src/common/compat/poll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index f892c83..64ff618 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -73,7 +73,7 @@ enum { LPOLLNVAL = EPOLLHUP, LPOLLRDHUP = EPOLLRDHUP, /* Close on exec feature of epoll */ -#if __GLIBC_PREREQ(2, 9) +#ifdef EPOLL_CLOEXEC LTTNG_CLOEXEC = EPOLL_CLOEXEC, #else /* @@ -127,7 +127,7 @@ extern int compat_epoll_create(struct lttng_poll_event *events, #define lttng_poll_create(events, size, flags) \ compat_epoll_create(events, size, flags) -#if __GLIBC_PREREQ(2, 9) +#ifdef EPOLL_CLOEXEC static inline int compat_glibc_epoll_create(int size __attribute__((unused)), int flags) { -- 2.1.2