gnulib: import mkstemp
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 20 Feb 2018 10:48:01 +0000 (11:48 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Tue, 20 Feb 2018 13:12:33 +0000 (14:12 +0100)
commit2d8adcbd07fc12a3212a9f045605ef712f5fb3ab
tree571255487d1f1fe602b04f7232939cd235dc8dd6
parentde65820cd69a4d9aaa87079a809c70364571efab
gnulib: import mkstemp

Older versions of MinGW do not support mkstemp causing:

    gdb/unittests/scoped_fd-selftests.c:37:29: error: \
    'mkstemp' was not declared in this scope
       int fd = mkstemp (filename);
                             ^
    gdb/unittests/scoped_fd-selftests.c: In function 'void
    selftests::scoped_fd::test_release()':
    gdb/unittests/scoped_fd-selftests.c:56:29: error: \
    'mkstemp' was not declared in this scope
       int fd = mkstemp (filename);
                             ^

Import mkstemp from gnulib.

gdb/
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
* gnulib/aclocal.m4: Regenerated.
* gnulib/config.in: Regenerated.
* gnulib/configure: Regenerated.
* gnulib/import/Makefile.am: Regenerated.
* gnulib/import/Makefile.in: Regenerated.
* gnulib/import/m4/gnulib-cache.m4: Regenerated.
* gnulib/import/m4/gnulib-comp.m4: Regenerated.
* gnulib/import/m4/mkstemp.m4: Imported.
* gnulib/import/m4/secure_getenv.m4: Imported.
* gnulib/import/m4/tempname.m4: Imported.
* gnulib/import/mkstemp.c: Imported.
* gnulib/import/secure_getenv.c: Imported.
* gnulib/import/tempname.c: Imported.
* gnulib/import/tempname.h: Imported.
16 files changed:
gdb/ChangeLog
gdb/gnulib/aclocal.m4
gdb/gnulib/config.in
gdb/gnulib/configure
gdb/gnulib/import/Makefile.am
gdb/gnulib/import/Makefile.in
gdb/gnulib/import/m4/gnulib-cache.m4
gdb/gnulib/import/m4/gnulib-comp.m4
gdb/gnulib/import/m4/mkstemp.m4 [new file with mode: 0644]
gdb/gnulib/import/m4/secure_getenv.m4 [new file with mode: 0644]
gdb/gnulib/import/m4/tempname.m4 [new file with mode: 0644]
gdb/gnulib/import/mkstemp.c [new file with mode: 0644]
gdb/gnulib/import/secure_getenv.c [new file with mode: 0644]
gdb/gnulib/import/tempname.c [new file with mode: 0644]
gdb/gnulib/import/tempname.h [new file with mode: 0644]
gdb/gnulib/update-gnulib.sh