Hi tech -- ksh/io.c uses mkstemp but does not include stdlib.h. It has been getting by with the legacy definition in unistd.h
Originally spotted by m...@netbsd.org OK? ~Brian Index: io.c =================================================================== RCS file: /cvs/src/bin/ksh/io.c,v retrieving revision 1.37 diff -u -p -r1.37 io.c --- io.c 28 Jun 2019 13:34:59 -0000 1.37 +++ io.c 24 Jul 2019 14:05:41 -0000 @@ -9,6 +9,7 @@ #include <ctype.h> #include <errno.h> #include <fcntl.h> +#include <stdlib.h> #include <string.h> #include <unistd.h>