diff --git a/src/helper/jim.c b/src/helper/jim.c index 28dc950db..bcea7c53f 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 55ea67caf..e59c6203a 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