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
This commit is contained in:
John David Anglin
2024-12-29 14:38:09 -05:00
parent 0b06abe027
commit 9fbf4a6adf
4 changed files with 13 additions and 2 deletions

View File

@@ -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(). */