summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2010-01-24 12:31:55 +0000
committerroot <root>2010-01-24 12:31:55 +0000
commitf6aa3fc4625994405f4420586126aa3d31c19f75 (patch)
treed47981d506a7568b3b6603c066a1a3d928c5a729
parent7001ea97ebc6484e1250f56965680472d4f14ce6 (diff)
disable poll on aix
-rw-r--r--Changes3
-rw-r--r--ev.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/Changes b/Changes
index e764cd8..962eab6 100644
--- a/Changes
+++ b/Changes
@@ -4,6 +4,9 @@ Revision history for libev, a high-performance and full-featured event loop.
- remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu).
- configure now prepends -O3, not appends it, so one can still
override it.
+ - disable poll backend on AIX, the poll header spams the namespace
+ and it's not worth working around dead platforms (reported
+ and analyzed by Aivars Kalvans).
3.9 Thu Dec 31 07:59:59 CET 2009
- signalfd is no longer used by default and has to be requested
diff --git a/ev.c b/ev.c
index f1bcf58..553dc55 100644
--- a/ev.c
+++ b/ev.c
@@ -346,6 +346,12 @@ extern "C" {
/* this block fixes any misconfiguration where we know we run into trouble otherwise */
+#ifdef _AIX
+/* AIX has a completely broken poll.h header */
+# undef EV_USE_POLL
+# define EV_USE_POLL 0
+#endif
+
#ifndef CLOCK_MONOTONIC
# undef EV_USE_MONOTONIC
# define EV_USE_MONOTONIC 0