aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-12-29 14:38:09 -0500
committerJohn David Anglin <danglin@gcc.gnu.org>2024-12-29 14:38:09 -0500
commit9fbf4a6adf6212cfe762c5ade87e6e5066b5b05b (patch)
tree25985f2c05db0c9068a50f26816d975abdecebe6 /include
parent0b06abe027a78681d29a5e91daa74bf8dba39826 (diff)
downloadgcc-9fbf4a6adf6212cfe762c5ade87e6e5066b5b05b.zip
gcc-9fbf4a6adf6212cfe762c5ade87e6e5066b5b05b.tar.gz
gcc-9fbf4a6adf6212cfe762c5ade87e6e5066b5b05b.tar.bz2
Add support to provide libiberty mkstemps in gcc
2024-12-28 John David Anglin <danglin@gcc.gnu.org> gcc/ChangeLog: PR target/118121 * configure.ac: Check for mkstemps declaration. * configure: Regenerate. * config.in: Regenerate. include/ChangeLog: * libiberty.h (mkstemps): Declare
Diffstat (limited to 'include')
-rw-r--r--include/libiberty.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 6259d7d..174fefb 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -199,6 +199,10 @@ extern int fdmatch (int fd1, int fd2);
extern int ffs(int);
#endif
+#if defined (HAVE_DECL_MKSTEMPS) && !HAVE_DECL_MKSTEMPS
+extern int mkstemps(char *, int);
+#endif
+
/* Get the working directory. The result is cached, so don't call
chdir() between calls to getpwd(). */