summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-07-13 16:04:00 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-07-13 16:04:00 +0000
commit66be5b4536f9edebbbfe8146d44767e4f93d15e4 (patch)
treeccee259a57bb34c14f3debd0cbc8fc98ae20c691 /ffmpeg.c
parent0f69ca7f143bbe143a8bdc31240bfc563452874a (diff)
Check for getrusage
Originally committed as revision 9627 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d5cc28a25c..795ca4c3b9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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