aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-02-01 11:24:15 +0100
committerLukas Larsson <[email protected]>2019-02-01 11:24:15 +0100
commitad87370344bb1b834ff930fac80eb5ff3d1130dd (patch)
tree6dda0dbb542f7fdd3cd5cb0713e4494c71322471 /erts/emulator
parent8ffb4e56172909b3b1acadaf7e9ec8f7dbe2c3e0 (diff)
downloadotp-ad87370344bb1b834ff930fac80eb5ff3d1130dd.tar.gz
otp-ad87370344bb1b834ff930fac80eb5ff3d1130dd.tar.bz2
otp-ad87370344bb1b834ff930fac80eb5ff3d1130dd.zip
Fix EV_DISPATCH detection on NetBSD
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/sys/common/erl_poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/sys/common/erl_poll.c b/erts/emulator/sys/common/erl_poll.c
index 27ffba58bd..c71d23f58c 100644
--- a/erts/emulator/sys/common/erl_poll.c
+++ b/erts/emulator/sys/common/erl_poll.c
@@ -872,8 +872,8 @@ update_pollset(ErtsPollSet *ps, int fd, ErtsPollOp op, ErtsPollEvents events)
}
}
-#if defined(EV_DISPATCH) && !defined(__OpenBSD__)
- /* If we have EV_DISPATCH we use it, unless we are on OpenBSD as the
+#if defined(EV_DISPATCH) && !(defined(__OpenBSD__) || defined(__NetBSD__))
+ /* If we have EV_DISPATCH we use it, unless we are on OpenBSD/NetBSD as the
behavior of EV_EOF seems to be edge triggered there and we need it
to be level triggered.