[138966] trunk/base/src/pextlib1.0/Pextlib.c

raimue at macports.org raimue at macports.org
Sat Jul 25 04:25:55 PDT 2015


Revision: 138966
          https://trac.macports.org/changeset/138966
Author:   raimue at macports.org
Date:     2015-07-25 04:25:54 -0700 (Sat, 25 Jul 2015)
Log Message:
-----------
pextlib: Add _GNU_SOURCE define for vasprintf on Linux

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

Modified: trunk/base/src/pextlib1.0/Pextlib.c
===================================================================
--- trunk/base/src/pextlib1.0/Pextlib.c	2015-07-25 11:13:18 UTC (rev 138965)
+++ trunk/base/src/pextlib1.0/Pextlib.c	2015-07-25 11:25:54 UTC (rev 138966)
@@ -43,6 +43,8 @@
 #define _BSD_SOURCE
 /* required for clearenv(3)/setenv(3)/unsetenv(3) on OS X */
 #define _DARWIN_C_SOURCE
+/* required for vasprintf(3) on Linux */
+#define _GNU_SOURCE
 
 #include <sys/types.h>
 #include <sys/socket.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150725/6e8ff000/attachment.html>


More information about the macports-changes mailing list