bin: fix compilation on mingw

* src/bin/common_trans.cc: Fix conditional compilation.
* src/bin/ltldo.cc, src/bin/ltlcross.cc: Include sys/wait.h.
This commit is contained in:
Alexandre Duret-Lutz 2015-01-27 21:29:34 +01:00
parent 48d508420b
commit 6819cee682
3 changed files with 4 additions and 5 deletions

View file

@ -293,7 +293,6 @@ volatile bool timed_out = false;
unsigned timeout_count = 0;
static unsigned timeout = 0;
#if ENABLE_TIMEOUT
static volatile int alarm_on = 0;
static int child_pid = -1;
@ -382,6 +381,7 @@ exec_with_timeout(const char* cmd)
}
return status;
}
#endif // ENABLE_TIMEOUT
#define OPT_LIST 1
static const argp_option options[] =
@ -438,7 +438,4 @@ static int parse_opt_trans(int key, char* arg, struct argp_state*)
return 0;
}
const struct argp trans_argp { options, parse_opt_trans, 0, 0, 0, 0, 0 };
#endif // ENABLE_TIMEOUT
const struct argp trans_argp = { options, parse_opt_trans, 0, 0, 0, 0, 0 };

View file

@ -28,6 +28,7 @@
#include <cstdio>
#include <argp.h>
#include <unistd.h>
#include <sys/wait.h>
#include "error.h"
#include "argmatch.h"

View file

@ -23,6 +23,7 @@
#include <iostream>
#include <sstream>
#include <fstream>
#include <sys/wait.h>
#include "error.h"