<stdlib.h>/<unistd.h>: Expose mkdtemp()'s prototype also if XSI is visible.
authorSascha Wildner <saw@online.de>
Tue, 27 Oct 2015 18:16:37 +0000 (19:16 +0100)
committerSascha Wildner <saw@online.de>
Tue, 27 Oct 2015 18:16:37 +0000 (19:16 +0100)
commit3b63b459ebb18440f706cfff1e2142caec89fcf5
tree7d435d918f856c14c8bf4acc77f6099da5439284
parent1f6bbeb9799d027bfc4a23da558894e8162870f8
<stdlib.h>/<unistd.h>: Expose mkdtemp()'s prototype also if XSI is visible.

The history of this function in the specs seems to be a bit convoluted
for this function, to say the least. Even though I can't find it in
either Issue 5 or 6, go with what Issue 7's HISTORY says and treat it
like it was moved from XSI to base starting with Issue 7:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdtemp.html

Most importantly, this commit fixes x11/xterm which was building but
segfaulting after 8eb95a5667325.

Reported-by: Rimvydas Jasinskas <rimvydas.jasinskas@gmail.com>
include/stdlib.h
include/unistd.h