From 13af1d8c3799df1f8eafd5f07d33115a148f5bf7 Mon Sep 17 00:00:00 2001 From: Haruki Hasegawa Date: Mon, 13 Oct 2014 00:46:51 +0900 Subject: [PATCH] Add missing function prototypes in time.h Add clock_settime() and clock_nanosleep() function prototypes in time.h. Change-Id: I0eb45e465b3b48b9d4f3a4a8109a6f2d9c4f8ce2 Signed-off-by: Haruki Hasegawa --- ndk/platforms/android-L/include/time.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ndk/platforms/android-L/include/time.h b/ndk/platforms/android-L/include/time.h index 0a5f18be7..aa72fcc3b 100644 --- a/ndk/platforms/android-L/include/time.h +++ b/ndk/platforms/android-L/include/time.h @@ -85,8 +85,10 @@ extern void tzset(void) __LIBC_ABI_PUBLIC__; extern clock_t clock(void) __LIBC_ABI_PUBLIC__; -extern int clock_getres(int, struct timespec*) __LIBC_ABI_PUBLIC__; -extern int clock_gettime(int, struct timespec*) __LIBC_ABI_PUBLIC__; +extern int clock_getres(clockid_t, struct timespec*) __LIBC_ABI_PUBLIC__; +extern int clock_gettime(clockid_t, struct timespec*) __LIBC_ABI_PUBLIC__; +extern int clock_nanosleep(clockid_t, int, const struct timespec*, struct timespec*) __LIBC_ABI_PUBLIC__; +extern int clock_settime(clockid_t, const struct timespec*) __LIBC_ABI_PUBLIC__; extern int timer_create(int, struct sigevent*, timer_t*) __LIBC_ABI_PUBLIC__; extern int timer_delete(timer_t) __LIBC_ABI_PUBLIC__;