From 70d80bba5aa9f7ba5d24625265ef549770f592c4 Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 27 Apr 2009 05:29:30 +0000 Subject: [PATCH] Zach Welch wrap _GNU_SOURCE defines git-svn-id: svn://svn.berlios.de/openocd/trunk@1532 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/jim.c | 2 ++ src/target/oocd_trace.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/helper/jim.c b/src/helper/jim.c index 28dc950d..bcea7c53 100644 --- a/src/helper/jim.c +++ b/src/helper/jim.c @@ -49,7 +49,9 @@ #define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */ #endif /* JIM_ANSIC */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE /* for vasprintf() */ +#endif #include #include #include diff --git a/src/target/oocd_trace.c b/src/target/oocd_trace.c index 55ea67ca..e59c6203 100644 --- a/src/target/oocd_trace.c +++ b/src/target/oocd_trace.c @@ -21,7 +21,9 @@ #include "config.h" #endif +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include -- 2.39.5