2 Without this patch, python detects and uses epoll which only exists in
3 OmniOS for lx zones and Linux compatibility. It is not quite the same as
4 the Linux implementation and can cause socket related failures in python.
6 There is no nice way to tell configure that we don't have it
7 (pkgsrc get around this by installing a broken epoll.h into the build
10 diff -wpruN '--exclude=*.orig' a~/configure.ac a/configure.ac
11 --- a~/configure.ac 1970-01-01 00:00:00
12 +++ a/configure.ac 1970-01-01 00:00:00
13 @@ -3779,7 +3779,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#in
16 AC_MSG_CHECKING(for epoll)
17 -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[void *x=epoll_create]])],
18 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[void *x=NOepoll_create]])],
19 [AC_DEFINE(HAVE_EPOLL, 1, Define if you have the 'epoll' functions.)