diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-12 07:35:00 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-12 07:35:00 +0000 |
commit | 4c71ca6b5ffe6dfba24da7607212a38dc90a0141 (patch) | |
tree | f5e79260e99c5dfb64b08a943b3a2694079a5872 /configure.in | |
parent | 61cba7e0e6dae78ff257bef546e6783c4b634ad4 (diff) |
Define _GNU_SOURCE in config.h, remove definitions from source files.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1757 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 4243e668..875212e2 100644 --- a/configure.in +++ b/configure.in @@ -851,6 +851,7 @@ if test "${has_environ}" != "yes" ; then AC_MSG_FAILURE([Could not find 'environ' in unistd.h or available libraries.]) fi +AC_DEFINE([_GNU_SOURCE],[1],[Use GNU C library extensions (e.g. stdndup).]) # set default gcc warnings GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security" |