[120141] trunk/base/src/pextlib1.0/flock.c

jmr at macports.org jmr at macports.org
Fri May 16 16:42:15 PDT 2014


Revision: 120141
          https://trac.macports.org/changeset/120141
Author:   jmr at macports.org
Date:     2014-05-16 16:42:15 -0700 (Fri, 16 May 2014)
Log Message:
-----------
also set _DARWIN_C_SOURCE to avoid hiding flock on OS X

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/flock.c

Modified: trunk/base/src/pextlib1.0/flock.c
===================================================================
--- trunk/base/src/pextlib1.0/flock.c	2014-05-16 23:36:57 UTC (rev 120140)
+++ trunk/base/src/pextlib1.0/flock.c	2014-05-16 23:42:15 UTC (rev 120141)
@@ -36,6 +36,8 @@
 
 /* needed to get struct sigaction on some platforms */
 #define _XOPEN_SOURCE 500L
+/* the above hides flock on OS X without _DARWIN_C_SOURCE */
+#define _DARWIN_C_SOURCE
 
 #if HAVE_SYS_FILE_H
 #include <sys/file.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140516/f4722fc1/attachment.html>


More information about the macports-changes mailing list