summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorgrant <grant>2004-12-20 13:09:04 +0000
committergrant <grant>2004-12-20 13:09:04 +0000
commitf90c63c8c27ddcd672093ede249d8af88744f439 (patch)
treeec14a3d964a5f3ad92fa8182935da964891d42fd /mk/platform
parentb6dce2c05ff3ab11ef4671d1dabff7e6a622310b (diff)
downloadpkgsrc-f90c63c8c27ddcd672093ede249d8af88744f439.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/platform')
-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