summaryrefslogtreecommitdiff
path: root/mk/platform/Darwin.mk
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2016-11-13 11:06:40 +0000
committerjdolecek <jdolecek>2016-11-13 11:06:40 +0000
commit9b3095c68ea34e81261c02322588cd87484d5c27 (patch)
treeb6a10e3c110556d96907d4439143b85c96361ee5 /mk/platform/Darwin.mk
parent81c23439fad86c096318087c218b962b8ebc66af (diff)
downloadpkgsrc-9b3095c68ea34e81261c02322588cd87484d5c27.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/platform/Darwin.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