X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fperl%2FUCW%2FConfigure%2FLibUCW.pm;h=c40b1cac5e25d5a727c960daade29e6b24710d3e;hb=1d6a9a1fe4e2a62194c62aa756833b96c6807a7e;hp=5969e383fee6b52fcaaa4ede1eb99d55de2e2437;hpb=a27367df4d44e08ed719f6450bce960ca4b9cccc;p=libucw.git diff --git a/ucw/perl/UCW/Configure/LibUCW.pm b/ucw/perl/UCW/Configure/LibUCW.pm index 5969e383..c40b1cac 100644 --- a/ucw/perl/UCW/Configure/LibUCW.pm +++ b/ucw/perl/UCW/Configure/LibUCW.pm @@ -54,6 +54,18 @@ if (Get("CONFIG_UCW_THREADS")) { }); } +# Detect if we have the epoll() syscall +TestBool("CONFIG_UCW_EPOLL", "Checking for epoll", sub { + return UCW::Configure::C::TestCompile("epoll", <<'FINIS' ) ? 1 : 0; +#include +int main(void) +{ + epoll_create(256); + return 0; +} +FINIS +}); + PostConfig { AtWrite { UCW::Configure::C::ConfigHeader("ucw/autoconf.h", [