diff options
author | jdolecek <jdolecek> | 2016-11-13 11:06:40 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2016-11-13 11:06:40 +0000 |
commit | 38de0af5b3db8c9f2a2c36c3202fd4944d7e7c82 (patch) | |
tree | b6a10e3c110556d96907d4439143b85c96361ee5 /mk | |
parent | 24452d4a2845f07b838e228981c24a5a0f03e216 (diff) | |
download | pkgsrc-38de0af5b3db8c9f2a2c36c3202fd4944d7e7c82.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.mk | 4 |
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 |