diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/jim.c | 2 | ||||
-rw-r--r-- | src/target/oocd_trace.c | 2 |
2 files changed, 4 insertions, 0 deletions
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 <stdio.h> #include <stdlib.h> #include <string.h> 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 <string.h> #include <errno.h> |