Fixed --test-build-*.

Fixes various aspects of --test-build-devpoll, --test-build-eventport, and
--test-build-epoll.

In particular, if --test-build-devpoll was used on Linux, then "devpoll"
event method would be preferred over "epoll".  Also, wrong definitions of
event macros were chosen.
This commit is contained in:
Ruslan Ermilov
2016-03-28 19:29:18 +03:00
parent 3d791c46f5
commit f5fff1eda0
3 changed files with 5 additions and 4 deletions

View File

@@ -128,7 +128,7 @@
#endif
#if (NGX_HAVE_DEVPOLL)
#if (NGX_HAVE_DEVPOLL) && !(NGX_TEST_BUILD_DEVPOLL)
#include <sys/ioctl.h>
#include <sys/devpoll.h>
#endif