From 753f003b589caca0b7a25c0df6c6ae14e7b20a89 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 9 Feb 2010 15:40:14 -0500 Subject: [PATCH] parallel: Define WEXITED to allow building on FreeBSD kernel. (This is somewhat experimental.) --- debian/changelog | 2 ++ parallel.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5d06af3..d0d4fc8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,8 @@ moreutils (0.38) UNRELEASED; urgency=low like `parallel -j3 -- ls df "echo hi"` * ifdata: Add FreeBSD kernel support, although some of the more esoteric interface options are not currently supported in FreeBSD. + * parallel: Define WEXITED to allow building on FreeBSD kernel. + (This is somewhat experimental.) -- Joey Hess Mon, 05 Oct 2009 13:33:07 -0400 diff --git a/parallel.c b/parallel.c index 2358470..c78e830 100644 --- a/parallel.c +++ b/parallel.c @@ -32,6 +32,10 @@ #include #include +#if defined(__FreeBSD_kernel__) +#define WEXITED 0 +#endif + void usage() { printf("parallel [OPTIONS] command -- arguments\n\tfor each argument, " "run command with argument, in parallel\n"); -- 2.39.5