Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
7d16f4fb
Commit
7d16f4fb
authored
Mar 25, 2013
by
jehan
Browse files
CLOCK_BOOTTIME not defined in Android, use REALTIME instead
parent
a9abab6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/belle_sip_utils.c
src/belle_sip_utils.c
+1
-1
No files found.
src/belle_sip_utils.c
View file @
7d16f4fb
...
@@ -487,7 +487,7 @@ static int find_best_clock_id () {
...
@@ -487,7 +487,7 @@ static int find_best_clock_id () {
#ifndef ANDROID
#ifndef ANDROID
#define DEFAULT_CLOCK_MODE CLOCK_MONOTONIC
#define DEFAULT_CLOCK_MODE CLOCK_MONOTONIC
#else
#else
#define DEFAULT_CLOCK_MODE CLOCK_
BOOTTIME
#define DEFAULT_CLOCK_MODE CLOCK_
REALTIME
/*monotonic clock stop during sleep mode*/
#endif
#endif
if
(
clock_id
==-
1
)
{
if
(
clock_id
==-
1
)
{
if
(
clock_gettime
(
DEFAULT_CLOCK_MODE
,
&
ts
)
!=
1
){
if
(
clock_gettime
(
DEFAULT_CLOCK_MODE
,
&
ts
)
!=
1
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment