< prev index next >
modules/jdk.packager/src/main/native/library/common/PosixPlatform.cpp
Print this page
*** 44,53 ****
--- 44,54 ----
#include <sys/types.h>
#include <unistd.h>
#include <sys/sysctl.h>
#include <sys/file.h>
#include <sys/stat.h>
+ #include <sys/wait.h>
#include <errno.h>
#include <limits.h>
#include <pwd.h>
#include <iostream>
#include <algorithm>
*** 378,388 ****
int status = 0;
pid_t wpid = 0;
#ifdef LINUX
! wait();
#endif
#ifdef MAC
wpid = wait(&status);
#endif
--- 379,389 ----
int status = 0;
pid_t wpid = 0;
#ifdef LINUX
! wait(&status);
#endif
#ifdef MAC
wpid = wait(&status);
#endif
< prev index next >