Tested on hppa64-hp-hpux11.11. Okay for trunk? Dave ---
Add support to provide libiberty mkstemps in gcc 2024-12-28 John David Anglin <dang...@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 diff --git a/gcc/configure.ac b/gcc/configure.ac index 77fab885a42..5a178e056ef 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1652,7 +1652,7 @@ AC_CHECK_DECLS([basename(const char*), strstr(const char*,const char*)], , ,[ #include "system.h"]) gcc_AC_CHECK_DECLS(getenv atol atoll asprintf sbrk abort atof getcwd getwd \ - madvise stpcpy strnlen strsignal strverscmp \ + madvise mkstemps stpcpy strnlen strsignal strverscmp \ strtol strtoul strtoll strtoull setenv unsetenv \ errno snprintf vsnprintf vasprintf malloc realloc calloc \ free getopt clock getpagesize ffs fmemopen gcc_UNLOCKED_FUNCS, , ,[ diff --git a/include/libiberty.h b/include/libiberty.h index 6259d7d54ca..174fefb3d75 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(). */
signature.asc
Description: PGP signature