diff options
| author | David 'Digit' Turner <digit@google.com> | 2011-10-12 02:19:03 +0200 |
|---|---|---|
| committer | David 'Digit' Turner <digit@google.com> | 2011-10-12 03:43:29 +0200 |
| commit | 7761beeb56c857150052b0576e639375f4b1a55c (patch) | |
| tree | c87a965d43a1726d47d7ca82432c6201cd54a3e1 /ndk | |
| parent | b298c3bdc99ecc7775f65d1453c13afce83ba9cd (diff) | |
| download | android_development-7761beeb56c857150052b0576e639375f4b1a55c.tar.gz android_development-7761beeb56c857150052b0576e639375f4b1a55c.tar.bz2 android_development-7761beeb56c857150052b0576e639375f4b1a55c.zip | |
ndk: <time.h> Add missing clock_settime()/clock_nanosleep() declarations
Both functions are part of the C library since Android 1.5 / API level 3
but were missing a declaration in <time.h>, so add then here
+ Fix first parameter from 'int' to 'clockid_t' for clock_getres()
and clock_gettime()
Fixes http://code.google.com/p/android/issues/detail?id=20140
Change-Id: Ic2191d5eb54475c149b9a6b8f3ba55bc8ed4643f
Diffstat (limited to 'ndk')
| -rw-r--r-- | ndk/platforms/android-3/include/time.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ndk/platforms/android-3/include/time.h b/ndk/platforms/android-3/include/time.h index b5227d7c0..caf6aa7e4 100644 --- a/ndk/platforms/android-3/include/time.h +++ b/ndk/platforms/android-3/include/time.h @@ -96,8 +96,10 @@ extern long int timezone; extern clock_t clock(void); /* BIONIC: extra linux clock goodies */ -extern int clock_getres(int, struct timespec *); -extern int clock_gettime(int, struct timespec *); +extern int clock_getres(clockid_t, struct timespec *); +extern int clock_gettime(clockid_t, struct timespec *); +extern int clock_settime(clockid_t, const struct timespec *); +extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 |
