]> Savannah Git Hosting - gnulib.git/commit
mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
authorTom Tromey <tom@tromey.com>
Mon, 1 Oct 2018 20:57:45 +0000 (14:57 -0600)
committerBruno Haible <bruno@clisp.org>
Mon, 1 Oct 2018 23:14:11 +0000 (01:14 +0200)
commit6954995dd32ea98a1973df31f411f3996bb47dfb
treeefe5e1167ca5c8dc206d992bc100d543997c8990
parent7d0bb7b0e50dbd631f7b0f3cf2718bcdf06e0506
mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.

Attempting to use the mkostemp module in gdb caused a build failure
when using the C++ namespace feature, because mkostemp was not
declared.  On OS X, mkostemp is declared in unistd.h, so this patch
extends the existing special case in stdlib.in.h to cover mkostemp and
mkostemps.

* lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
on OS X.
ChangeLog
lib/stdlib.in.h