aboutsummaryrefslogtreecommitdiff
path: root/include/environ.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-05-31 09:35:07 +0300
committerEli Zaretskii <eliz@gnu.org>2017-05-31 09:35:07 +0300
commitb9c6833008dfb3c45354f4e810e631a77f3c9cb3 (patch)
tree8be2ab5c68255302879a3f5239467f717167d4a8 /include/environ.h
parent1b1810b5e01968cdfc16d537b4d5c27adab8a173 (diff)
downloadgdb-b9c6833008dfb3c45354f4e810e631a77f3c9cb3.zip
gdb-b9c6833008dfb3c45354f4e810e631a77f3c9cb3.tar.gz
gdb-b9c6833008dfb3c45354f4e810e631a77f3c9cb3.tar.bz2
Fix MinGW compilation warnings due to environ.h
include/ChangeLog: 2017-05-31 Eli Zaretskii <eliz@gnu.org> * environ.h: Add #ifndef guard.
Diffstat (limited to 'include/environ.h')
-rw-r--r--include/environ.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/environ.h b/include/environ.h
index 326a278..32bb0b1 100644
--- a/include/environ.h
+++ b/include/environ.h
@@ -27,7 +27,9 @@ Boston, MA 02110-1301, USA. */
# include <crt_externs.h>
# define environ (*_NSGetEnviron ())
# else
+# ifndef environ
extern char **environ;
+# endif
# endif
# define HAVE_ENVIRON_DECL
#endif