Commit 7e144bde authored by David Carlier's avatar David Carlier Committed by Nils Goroll

Haiku build fix

Mainly WCOREDUMP is undefine but WIFCORED has similar semantic.
parent f3b62f8f
......@@ -34,7 +34,6 @@
#include "config.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <poll.h>
#include <signal.h>
......@@ -49,6 +48,8 @@
#include "mgt.h"
#include "vapi/vsig.h"
#include "vbm.h"
#include "vcli_serve.h"
#include "vev.h"
......
......@@ -36,7 +36,6 @@
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include "vtc.h"
......@@ -45,6 +44,9 @@
#include "vnum.h"
#include "vre.h"
#include "vapi/voptget.h"
#include "vapi/vsig.h"
struct vsb *
vtc_hex_to_bin(struct vtclog *vl, const char *arg)
{
......@@ -145,10 +147,6 @@ vtc_expect(struct vtclog *vl,
* otherwise, the process must die on exit(expect_status)
*/
#ifndef WCOREDUMP
# define WCOREDUMP(s) (-1)
#endif
void
vtc_wait4(struct vtclog *vl, long pid,
int expect_status, int expect_signal, int allow_core)
......
......@@ -39,4 +39,14 @@
#include "tbl/vsig_list.h"
#include <sys/wait.h>
#ifndef WCOREDUMP
# ifdef WIFCORED
# define WCOREDUMP(s) WIFCORED(s)
# else
# define WCOREDUMP(s) (-1)
# endif
#endif
#endif /* VAPI_VSC_H_INCLUDED */
......@@ -46,6 +46,8 @@
#include "vdef.h"
#include "vapi/vsig.h"
#include "vas.h"
#include "vfil.h"
#include "vlu.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment