]> granicus.if.org Git - libevent/commitdiff
Do not add epoll_sub (syscall wrappers) for epoll in cmake
authorAzat Khuzhin <a3at.mail@gmail.com>
Wed, 8 Mar 2017 20:15:33 +0000 (23:15 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 8 Mar 2017 20:34:44 +0000 (23:34 +0300)
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
CMakeLists.txt

index f609d02d0331ed166d2fd88bb77739607d31aea2..19a615e985be682bf908e2bdf8b5cf327b131102 100644 (file)
@@ -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)