Fix bug
1938754: do not warn when epoll_create() fails with ENOSYS.
svn:r706
o make RPC replies use application/octet-stream as mime type
o do not delete uninitialized timeout event in evdns
o Correct the documentation on buffer printf functions.
+ o Don't warn on unimplemented epoll_create(): this isn't a problem, just a reason to fall back to poll or select.
Changes in 1.4.0:
#error
#endif]), have_gcc42=yes, have_gcc42=no)
- CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
+ CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
CFLAGS="$CFLAGS -Wno-unused-parameter -Wno-sign-compare -Wstrict-aliasing"
if test x$have_gcc4 = xyes ; then
/* Initalize the kernel queue */
if ((epfd = epoll_create(nfiles)) == -1) {
- event_warn("epoll_create");
+ if (errno != ENOSYS)
+ event_warn("epoll_create");
return (NULL);
}