mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Fix build failure on systems without spawn.h
This commit is contained in:
parent
6e0a03ee07
commit
a187c89002
@ -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])
|
||||
|
@ -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 */
|
||||
|
@ -227,6 +227,7 @@ headers = [
|
||||
'poll.h',
|
||||
'pwd.h',
|
||||
'sched.h',
|
||||
'spawn.h',
|
||||
'stdint.h',
|
||||
'stdlib.h',
|
||||
'string.h',
|
||||
|
Loading…
Reference in New Issue
Block a user