diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-03 13:53:25 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-03 13:53:25 +0200 |
commit | 91dae7a9bcc0a73fe684d9def8ca6224c5de0213 (patch) | |
tree | 7743bd7c3c5afafe486a1fe559570c083e048552 /nq.c | |
parent | a8c5f2f79d773c98318f5f8708579845c7904140 (diff) | |
download | nq-91dae7a9bcc0a73fe684d9def8ca6224c5de0213.tar.gz nq-91dae7a9bcc0a73fe684d9def8ca6224c5de0213.tar.xz nq-91dae7a9bcc0a73fe684d9def8ca6224c5de0213.zip |
flock(2) is not actually POSIX...
Diffstat (limited to 'nq.c')
-rw-r--r-- | nq.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <sys/file.h> #include <sys/stat.h> |