X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fpoll.h;h=34d0cffda479661b95fdba56b5e7cb5356b08e65;hp=5f45da2b3b04cf3330c02236ef13793a71f02d21;hb=062fc3d82f245d6166457ebb0af9ea38abc30378;hpb=9d8c7763592fc66d2005b36bf7068d374a2e6232 diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index 5f45da2b3..34d0cffda 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) +#if defined(HAVE_EPOLL_CREATE1) && defined(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) +#if defined(HAVE_EPOLL_CREATE1) && defined(EPOLL_CLOEXEC) static inline int compat_glibc_epoll_create(int size __attribute__((unused)), int flags) {