summaryrefslogtreecommitdiffhomepage
path: root/auto/os/freebsd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--auto/os/freebsd21
1 files changed, 16 insertions, 5 deletions
diff --git a/auto/os/freebsd b/auto/os/freebsd
index f08ef97b0..ba2e18805 100644
--- a/auto/os/freebsd
+++ b/auto/os/freebsd
@@ -97,9 +97,20 @@ fi
if [ $EVENT_AIO = YES ]; then
- have=HAVE_AIO . auto/have
- EVENT_MODULES="$EVENT_MODULES $AIO_MODULE"
- CORE_SRCS="$CORE_SRCS $AIO_SRCS"
-else
- have=HAVE_AIO . auto/nohave
+ if [ \( $version -lt 500000 -a $version -ge 430000 \) \
+ -o $version -ge 500014 ]
+ then
+ have=HAVE_AIO . auto/have
+ EVENT_MODULES="$EVENT_MODULES $AIO_MODULE"
+ CORE_SRCS="$CORE_SRCS $AIO_SRCS"
+ else
+
+cat << END
+
+$0: error: the kqueue does not support AIO on this FreeBSD version
+
+END
+
+ exit 1
+ fi
fi