aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2015-09-10 22:52:08 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2015-09-10 22:52:08 +0000
commit297c364d7ce9ba632aa1a54d8e3ac7df11deac12 (patch)
treef69f089eefa4131dd05bc665bb157ac833fdabe1 /gcc/system.h
parent476013d60bccdca296731062ca8deced5c9c3e3a (diff)
downloadgcc-297c364d7ce9ba632aa1a54d8e3ac7df11deac12.zip
gcc-297c364d7ce9ba632aa1a54d8e3ac7df11deac12.tar.gz
gcc-297c364d7ce9ba632aa1a54d8e3ac7df11deac12.tar.bz2
re PR bootstrap/67363 (r227188 breaks build for mingw-w64)
PR bootstrap/67363 * configure.ac: Check if setenv and unsetenv are declared. * configure: Rebuild. * config.in: Rebuild. * system.h: Declare setenv and unsetenv if not declared. From-SVN: r227666
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 78ad609..1cc5d40 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -465,6 +465,10 @@ extern char *getwd (char *);
extern void *sbrk (int);
#endif
+#if defined (HAVE_DECL_SETENV) && !HAVE_DECL_SETENV
+int setenv(const char *, const char *, int);
+#endif
+
#if defined (HAVE_DECL_STRSTR) && !HAVE_DECL_STRSTR
extern char *strstr (const char *, const char *);
#endif
@@ -473,6 +477,10 @@ extern char *strstr (const char *, const char *);
extern char *stpcpy (char *, const char *);
#endif
+#if defined (HAVE_DECL_UNSETENV) && !HAVE_DECL_UNSETENV
+int unsetenv(const char *);
+#endif
+
#ifdef __cplusplus
}
#endif