From 91dae7a9bcc0a73fe684d9def8ca6224c5de0213 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 3 Aug 2015 13:53:25 +0200 Subject: flock(2) is not actually POSIX... --- nq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nq.c') diff --git a/nq.c b/nq.c index 0bbb009..ba8dc1c 100644 --- a/nq.c +++ b/nq.c @@ -3,7 +3,7 @@ * -w ... wait for all jobs/listed jobs queued so far to finish * -t ... exit 0 if no (listed) job needs waiting * - * - requires POSIX.1-2008 + * - requires POSIX.1-2008 and having flock(2) * - enforcing order works like this: * - every job has a flock(2)ed output file ala ",TIMESTAMP.PID" * - every job starts only after all earlier flock(2)ed files finished @@ -19,7 +19,8 @@ * http://creativecommons.org/publicdomain/zero/1.0/ */ -#define _POSIX_C_SOURCE 200809L +/* for FreeBSD. */ +#define _WITH_DPRINTF #include #include -- cgit 1.4.1