diff options
author | Måns Rullgård <mans@mansr.com> | 2010-02-10 01:55:11 +0300 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-02-10 01:55:11 +0300 |
commit | 0104b608ca588c7c4c8078650e34b63cbf9e9b4c (patch) | |
tree | 51705bc1cf9955c4f8d9230ff445fd1854122720 /cmdutils.c | |
parent | 614d8911c6aaf8c9bf57fb080f42f7d0615a1918 (diff) |
Check for setrlimit()
Originally committed as revision 21733 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c index 450ae3224f..24a8db2f1b 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -264,7 +264,7 @@ int opt_loglevel(const char *opt, const char *arg) int opt_timelimit(const char *opt, const char *arg) { -#if HAVE_SYS_RESOURCE_H +#if HAVE_SETRLIMIT int lim = parse_number_or_die(opt, arg, OPT_INT64, 0, INT_MAX); struct rlimit rl = { lim, lim + 1 }; if (setrlimit(RLIMIT_CPU, &rl)) |