Fix build failure on systems without spawn.h

This commit is contained in:
Ryan Schmidt 2018-09-24 01:36:35 -05:00
parent 6e0a03ee07
commit a187c89002
3 changed files with 5 additions and 0 deletions

View File

@ -639,6 +639,7 @@ AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h])
AC_CHECK_HEADERS([linux/magic.h])
AC_CHECK_HEADERS([termios.h])
AC_CHECK_HEADERS([alloca.h])
AC_CHECK_HEADERS([spawn.h])
# Some versions of MSC lack these
AC_CHECK_HEADERS([dirent.h sys/time.h])

View File

@ -30,7 +30,10 @@
#include <string.h>
#include <stdlib.h> /* for fdwalk */
#include <dirent.h>
#ifdef HAVE_SPAWN_H
#include <spawn.h>
#endif /* HAVE_SPAWN_H */
#ifdef HAVE_CRT_EXTERNS_H
#include <crt_externs.h> /* for _NSGetEnviron */

View File

@ -227,6 +227,7 @@ headers = [
'poll.h',
'pwd.h',
'sched.h',
'spawn.h',
'stdint.h',
'stdlib.h',
'string.h',