Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
66be5b45
Commit
66be5b45
authored
17 years ago
by
Ramiro Polla
Browse files
Options
Downloads
Patches
Plain Diff
Check for getrusage
Originally committed as revision 9627 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0f69ca7f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+3
-0
3 additions, 0 deletions
configure
ffmpeg.c
+2
-0
2 additions, 0 deletions
ffmpeg.c
with
5 additions
and
0 deletions
configure
+
3
−
0
View file @
66be5b45
...
@@ -667,6 +667,7 @@ HAVE_LIST="
...
@@ -667,6 +667,7 @@ HAVE_LIST="
fast_unaligned
fast_unaligned
fork
fork
freetype2
freetype2
getrusage
imlib2
imlib2
inet_aton
inet_aton
lrintf
lrintf
...
@@ -1596,6 +1597,8 @@ elif check_func dlopen -ldl; then
...
@@ -1596,6 +1597,8 @@ elif check_func dlopen -ldl; then
ldl
=
-ldl
ldl
=
-ldl
fi
fi
check_func getrusage
check_func fork
check_func fork
test
"
$vhook
"
=
"default"
&&
vhook
=
"
$dlopen
"
test
"
$vhook
"
=
"default"
&&
vhook
=
"
$dlopen
"
...
...
This diff is collapsed.
Click to expand it.
ffmpeg.c
+
2
−
0
View file @
66be5b45
...
@@ -3113,10 +3113,12 @@ static int64_t getutime(void)
...
@@ -3113,10 +3113,12 @@ static int64_t getutime(void)
#else
#else
static
int64_t
getutime
(
void
)
static
int64_t
getutime
(
void
)
{
{
#ifdef HAVE_GETRUSAGE
struct
rusage
rusage
;
struct
rusage
rusage
;
getrusage
(
RUSAGE_SELF
,
&
rusage
);
getrusage
(
RUSAGE_SELF
,
&
rusage
);
return
(
rusage
.
ru_utime
.
tv_sec
*
1000000LL
)
+
rusage
.
ru_utime
.
tv_usec
;
return
(
rusage
.
ru_utime
.
tv_sec
*
1000000LL
)
+
rusage
.
ru_utime
.
tv_usec
;
#endif
}
}
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment