pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/platform fix the test for <poll.h>/<sys/poll.h> - u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/44400c8ece38
branches:  trunk
changeset: 354865:44400c8ece38
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sun Nov 13 11:06:40 2016 +0000

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

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

diffs (18 lines):

diff -r d852c352352a -r 44400c8ece38 mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk     Sun Nov 13 10:55:12 2016 +0000
+++ b/mk/platform/Darwin.mk     Sun Nov 13 11:06:40 2016 +0000
@@ -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 @@
 # 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



Home | Main Index | Thread Index | Old Index