Commit Diff


commit - 60595c94fcdd89f20a7f00f5ed2347fd4764c2c0
commit + 21bb1653274d1cbdd3e02b7c7c71cb3d50a8289e
blob - 9070e63fcfd7256bf49ac0236f5dde1f3be5000b
blob + 74375b993013b8be069a98b66caa078bc5a95377
--- include/got_compat.h
+++ include/got_compat.h
@@ -56,6 +56,11 @@
 #include <sys/file.h>
 #endif
 
+/* POSIX doesn't define WAIT_ANY, so provide it if it's not found. */
+#ifndef WAIT_ANY
+#define WAIT_ANY (-1)
+#endif
+
 #ifndef __dead
 #define __dead __attribute__ ((__noreturn__))
 #endif