Commit 49386ee2 authored by ramiro's avatar ramiro

Check for getrusage

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9627 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 937dbf3b
......@@ -667,6 +667,7 @@ HAVE_LIST="
fast_unaligned
fork
freetype2
getrusage
imlib2
inet_aton
lrintf
......@@ -1596,6 +1597,8 @@ elif check_func dlopen -ldl; then
ldl=-ldl
fi
check_func getrusage
check_func fork
test "$vhook" = "default" && vhook="$dlopen"
......
......@@ -3113,10 +3113,12 @@ static int64_t getutime(void)
#else
static int64_t getutime(void)
{
#ifdef HAVE_GETRUSAGE
struct rusage rusage;
getrusage(RUSAGE_SELF, &rusage);
return (rusage.ru_utime.tv_sec * 1000000LL) + rusage.ru_utime.tv_usec;
#endif
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment