Commit 229dee8de9cb4c29a3a31115112a4175df84a8eb

SSE4 2019-05-12T16:29:13

- flex has "#define pid_t int" in its config.h Signed-off-by: SSE4 <tomskside@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/sys/wait.h b/sys/wait.h
index d7b17c5..4649bb8 100644
--- a/sys/wait.h
+++ b/sys/wait.h
@@ -240,12 +240,12 @@ BOOL WINAPI Process32NextW(HANDLE hSnapshot, LPPROCESSENTRY32W lppe);
 #define WSTOPSIG(status) __WSTOPSIG(status)
 #endif /* WSTOPSIG */
 
-#if !defined(__pid_t_defined) && !defined(_PID_T_)
+#if !defined(__pid_t_defined) && !defined(_PID_T_) && !defined(pid_t)
 #define __pid_t_defined 1
 #define _PID_T_
 typedef int __pid_t;
 typedef __pid_t pid_t;
-#endif /* !defined(__pid_t_defined) && !defined(_PID_T_) */
+#endif /* !defined(__pid_t_defined) && !defined(_PID_T_) && !defined(pid_t) */
 
 #ifndef __id_t_defined
 #define __id_t_defined 1