[FFmpeg-cvslog] r21733 - in trunk: cmdutils.c configure

mru subversion
Tue Feb 9 23:55:11 CET 2010


Author: mru
Date: Tue Feb  9 23:55:11 2010
New Revision: 21733

Log:
Check for setrlimit()

Modified:
   trunk/cmdutils.c
   trunk/configure

Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c	Tue Feb  9 23:55:08 2010	(r21732)
+++ trunk/cmdutils.c	Tue Feb  9 23:55:11 2010	(r21733)
@@ -264,7 +264,7 @@ int opt_loglevel(const char *opt, const 
 
 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))

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Feb  9 23:55:08 2010	(r21732)
+++ trunk/configure	Tue Feb  9 23:55:11 2010	(r21733)
@@ -1043,6 +1043,7 @@ HAVE_LIST="
     socklen_t
     soundcard_h
     poll_h
+    setrlimit
     struct_addrinfo
     struct_ipv6_mreq
     struct_sockaddr_in6
@@ -2460,6 +2461,7 @@ check_func  isatty
 check_func  ${malloc_prefix}memalign            && enable memalign
 check_func  mkstemp
 check_func  ${malloc_prefix}posix_memalign      && enable posix_memalign
+check_func  setrlimit
 check_func_headers io.h setmode
 check_func_headers lzo/lzo1x.h lzo1x_999_compress
 check_func_headers windows.h GetProcessTimes



More information about the ffmpeg-cvslog mailing list