From c88842f9a45b02a26a74ffe721a96567c4510f65 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 21 Jan 2015 08:11:35 +0100 Subject: [PATCH] zzuf: fix a minor inconsistency between short and long options when compiled on a system with a useless rlimit(). --- src/zzuf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/zzuf.c b/src/zzuf.c index dcded4a..e71a3f0 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -179,7 +179,9 @@ int main(int argc, char *argv[]) { "jobs", 1, NULL, 'j' }, { "list", 1, NULL, 'l' }, { "md5", 0, NULL, 'm' }, +#if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_MEM { "max-memory", 1, NULL, 'M' }, +#endif { "network", 0, NULL, 'n' }, { "opmode", 1, NULL, 'O' }, { "ports", 1, NULL, 'p' }, @@ -190,7 +192,9 @@ int main(int argc, char *argv[]) { "seed", 1, NULL, 's' }, { "signal", 0, NULL, 'S' }, { "max-time", 1, NULL, 't' }, +#if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_CPU { "max-cputime", 1, NULL, 'T' }, +#endif { "max-usertime", 1, NULL, 'U' }, { "verbose", 0, NULL, 'v' }, { "check-exit", 0, NULL, 'x' },