pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/platform Darwin 7.7.x has poll() in libc, but no po...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76b7b820f198
branches:  trunk
changeset: 485744:76b7b820f198
user:      grant <grant%pkgsrc.org@localhost>
date:      Mon Dec 20 13:09:04 2004 +0000

description:
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:

 mk/platform/Darwin.mk |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 10b0df343499 -r 76b7b820f198 mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk     Mon Dec 20 13:05:08 2004 +0000
+++ b/mk/platform/Darwin.mk     Mon Dec 20 13:09:04 2004 +0000
@@ -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 @@
 _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



Home | Main Index | Thread Index | Old Index