mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 989042 - Use waitid() only on Gonk; unbreak BSD build. r=bsmedberg
This commit is contained in:
parent
a03dc8fbb8
commit
99f9d84b64
@ -15,7 +15,7 @@
|
||||
# include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
#ifdef XP_UNIX
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
@ -977,7 +977,7 @@ ContentParent::SetPriorityAndCheckIsAlive(ProcessPriority aPriority)
|
||||
// direct child because of Nuwa this will fail with ECHILD, and we
|
||||
// need to assume the child is alive in that case rather than
|
||||
// assuming it's dead (as is otherwise a reasonable fallback).
|
||||
#ifdef XP_UNIX
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
siginfo_t info;
|
||||
info.si_pid = 0;
|
||||
if (waitid(P_PID, Pid(), &info, WNOWAIT | WNOHANG | WEXITED) == 0
|
||||
|
Loading…
Reference in New Issue
Block a user