Undef HAVE_WAITID if needed constants are not defined
That is the case on Hurd, where the code currently breaks because Hurd does not have WEXITED or WNOWAIT defined. Change-Id: I4b13633612b1168d36c949d9e8b35bc05bca7d5c Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3890988bb6
commit
b7c4f15d67
3
src/3rdparty/forkfd/forkfd.c
vendored
3
src/3rdparty/forkfd/forkfd.c
vendored
@ -58,6 +58,9 @@
|
||||
#if _POSIX_VERSION-0 >= 200809L || _XOPEN_VERSION-0 >= 500
|
||||
# define HAVE_WAITID 1
|
||||
#endif
|
||||
#if !defined(WEXITED) || !defined(WNOWAIT)
|
||||
# undef HAVE_WAITID
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
# define HAVE_PIPE2 1
|
||||
|
Loading…
Reference in New Issue
Block a user