pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/platform



Module Name:    pkgsrc
Committed By:   jdolecek
Date:           Sun Nov 13 11:06:40 UTC 2016

Modified Files:
        pkgsrc/mk/platform: Darwin.mk

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 pkgsrc/mk/platform/Darwin.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/platform/Darwin.mk
diff -u pkgsrc/mk/platform/Darwin.mk:1.84 pkgsrc/mk/platform/Darwin.mk:1.85
--- pkgsrc/mk/platform/Darwin.mk:1.84   Thu Oct 27 10:31:06 2016
+++ pkgsrc/mk/platform/Darwin.mk        Sun Nov 13 11:06:40 2016
@@ -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 
 # 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