summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2016-11-13 11:06:40 +0000
committerjdolecek <jdolecek@pkgsrc.org>2016-11-13 11:06:40 +0000
commit19f88ec31d74d3703c0e49f6be5d5f0b349eb99b (patch)
treee938699bff62069fdcf1cc8830dce5e150a755f6 /mk
parent8dcfd78d111091462cba23cd3fb630e6297cba63 (diff)
downloadpkgsrc-19f88ec31d74d3703c0e49f6be5d5f0b349eb99b.tar.gz
fix the test for <poll.h>/<sys/poll.h> - use _OPSYS_INCLUDE_DIRS instead
of assuming /usr/include; this fixes compilation of net/socat, which has broken !HAVE_POLL code
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Darwin.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index c8b54da504a..4b96dece625 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.84 2016/10/27 10:31:06 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.85 2016/11/13 11:06:40 jdolecek Exp $
#
# Variable definitions for the Darwin operating system.
@@ -172,7 +172,7 @@ _OPSYS_MAX_CMDLEN_CMD= /usr/sbin/sysctl -n kern.argmax
# configure packages that break because of this by pretending that
# there is no poll().
.if defined(GNU_CONFIGURE)
-. if !exists(/usr/include/poll.h) && !exists(/usr/include/sys/poll.h)
+. if !exists(${_OPSYS_INCLUDE_DIRS}/poll.h) && !exists(${_OPSYS_INCLUDE_DIRS}/sys/poll.h)
CONFIGURE_ENV+= ac_cv_func_poll=no
. endif
.endif