blob: 80015372e14a746ce2c68d07c55ccfce26b05fd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Description: Fixes a build error with GCC 6
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
Bug-Debian: https://bugs.debian.org/837021
diff --git a/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp b/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
index 5c8f4b9..7c35213 100644
--- a/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
+++ b/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
@@ -46,6 +46,7 @@
#include <iostream>
#include <dlfcn.h>
#include <signal.h>
+#include <sys/wait.h>
PosixPlatform::PosixPlatform(void) {
@@ -232,7 +233,7 @@ bool PosixProcess::Wait() {
//TODO Use waitpid instead of wait
#ifdef LINUX
- wait();
+ wait(&status);
#endif
#ifdef MAC
wpid = wait(&status);
|