diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-07-13 16:04:00 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-07-13 16:04:00 +0000 |
commit | 66be5b4536f9edebbbfe8146d44767e4f93d15e4 (patch) | |
tree | ccee259a57bb34c14f3debd0cbc8fc98ae20c691 | |
parent | 0f69ca7f143bbe143a8bdc31240bfc563452874a (diff) | |
download | ffmpeg-66be5b4536f9edebbbfe8146d44767e4f93d15e4.tar.gz |
Check for getrusage
Originally committed as revision 9627 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | ffmpeg.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -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 |