summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-12-20 13:09:04 +0000
committergrant <grant@pkgsrc.org>2004-12-20 13:09:04 +0000
commit80e7ac22fb11ba9d97e15055646122e84fa4ab66 (patch)
treeec14a3d964a5f3ad92fa8182935da964891d42fd /mk
parent4f163d6c5df9f972401fd71235d6660edbfef562 (diff)
downloadpkgsrc-80e7ac22fb11ba9d97e15055646122e84fa4ab66.tar.gz
Darwin 7.7.x has poll() in libc, but no poll.h. Address this in GNU
configure packages by testing for poll.h and sys/poll.h and pretending that there is no poll() if neither exist.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Darwin.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 8e6b43c6bfe..2bb9a32450b 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.4 2004/11/16 18:04:00 tv Exp $
+# $NetBSD: Darwin.mk,v 1.5 2004/12/20 13:09:04 grant Exp $
#
# Variable definitions for the Darwin operating system.
@@ -157,6 +157,15 @@ LOCALBASE?= ${DESTDIR}/usr/pkg
_OPSYS_MAX_CMDLEN!= /usr/sbin/sysctl -n kern.argmax
.endif
+# Darwin 7.7.x has poll() in libc, but no poll.h. Try to help GNU
+# 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)
+CONFIGURE_ENV+= ac_cv_func_poll=no
+. endif
+.endif
+
# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
# (it defaults to 'no' as per bsd.pkg.defaults.mk).
# Set the group and mode to meaningful values in that case (defaults to