summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2017-07-09 17:03:12 +0000
committerschmonz <schmonz@pkgsrc.org>2017-07-09 17:03:12 +0000
commite70c1a009f59ddd3ab192478c6d10ec0d3179df4 (patch)
treee814de697b5fb14400e5fc033c17e0e5350a52ec /mk/platform
parentcb188363a3e6fc8ca80f4fd92b8dc3bfe2807473 (diff)
downloadpkgsrc-e70c1a009f59ddd3ab192478c6d10ec0d3179df4.tar.gz
Define PKG_HAVE_KQUEUE where available.
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/Darwin.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index ec5929094e6..9879d0781d0 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.86 2017/01/17 15:32:17 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.87 2017/07/09 17:03:12 schmonz Exp $
#
# Variable definitions for the Darwin operating system.
@@ -181,6 +181,11 @@ CONFIGURE_ENV+= ac_cv_func_poll=no
. endif
.endif
+# check for kqueue(2) support
+.if exists(${_OPSYS_INCLUDE_DIRS}/sys/event.h)
+PKG_HAVE_KQUEUE= # defined
+.endif
+
# If the deployment target is not set explicitly, the linker in Tiger and prior
# versions running on PowerPC hosts defaults to a target of 10.1.
# Set the target for Tiger systems to be 10.4.