From: Azat Khuzhin Date: Wed, 8 Mar 2017 20:15:33 +0000 (+0300) Subject: Do not add epoll_sub (syscall wrappers) for epoll in cmake X-Git-Tag: release-2.1.9-beta^2~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea61de6094afb2c7d47c035687be97122ba0f05;p=libevent Do not add epoll_sub (syscall wrappers) for epoll in cmake Nowadays mostly all supported OS'es has this wrappers, and some of them (like SmartOS) has wrappers but doesn't have __NR_epoll* defines for syscall numbers, so just drop them (instead of adding yet another check int cmake like autotools has, since this will break building in cross-compile environment). Also one minor note, configure doesn't added epoll_sub.c either, since it check epoll_create() in runtime. And I tested it in SmartOS and it even works (`make verify`). Fixes: #463 (cherry picked from commit 819d04937729b7f8b7c84d6c5c40c5fcd6d68dfd) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b3f1797..6bd188c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -682,7 +682,7 @@ if(EVENT__HAVE_DEVPOLL) endif() if(EVENT__HAVE_EPOLL) - list(APPEND SRC_CORE epoll_sub.c epoll.c) + list(APPEND SRC_CORE epoll.c) endif() if(EVENT__HAVE_EVENT_PORTS)