summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2015-10-23 21:13:18 +0300
committerDmitry Shachnev <mitya57@gmail.com>2015-10-26 10:48:12 +0000
commitb7c4f15d6702941b110f7c2ffea490cf1b68c953 (patch)
treeae3c028d52fa1c3d696f990993bd916eb65c0149 /src/3rdparty
parent3890988bb69c2a50d4ebdbcd8c4c7058ac364125 (diff)
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>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/forkfd/forkfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c
index ec24ba7b16..e35b66ae2c 100644
--- a/src/3rdparty/forkfd/forkfd.c
+++ b/src/3rdparty/forkfd/forkfd.c
@@ -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