< prev index next >
modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
--- 1,7 ----
/*
! * Copyright (c) 2014, 2018, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
*** 39,48 ****
--- 39,49 ----
#include "FilePath.h"
#include <assert.h>
#include <stdbool.h>
#include <sys/types.h>
+ #include <sys/wait.h>
#include <unistd.h>
#include <sys/sysctl.h>
#include <iostream>
#include <dlfcn.h>
#include <signal.h>
*** 230,240 ****
int status = 0;
pid_t wpid = 0;
//TODO Use waitpid instead of wait
#ifdef LINUX
! wait();
#endif
#ifdef MAC
wpid = wait(&status);
#endif
--- 231,241 ----
int status = 0;
pid_t wpid = 0;
//TODO Use waitpid instead of wait
#ifdef LINUX
! wait(&status);
#endif
#ifdef MAC
wpid = wait(&status);
#endif
< prev index next >