* mdocml: vasprintf(3) needs _GNU_SOURCE on Linux; pointed out by
@ 2015-03-20 15:32 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-03-20 15:32 UTC (permalink / raw)
To: source
Log Message:
-----------
vasprintf(3) needs _GNU_SOURCE on Linux;
pointed out by Christian Neukirchen <chneukirchen at gmail dot com>.
Modified Files:
--------------
mdocml:
test-vasprintf.c
Revision Data
-------------
Index: test-vasprintf.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/test-vasprintf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -Ltest-vasprintf.c -Ltest-vasprintf.c -u -p -r1.1 -r1.2
--- test-vasprintf.c
+++ test-vasprintf.c
@@ -15,6 +15,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#if defined(__linux__) || defined(__MINT__)
+#define _GNU_SOURCE /* vasprintf() */
+#endif
+
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-20 15:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20 15:32 mdocml: vasprintf(3) needs _GNU_SOURCE on Linux; pointed out by schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).