[git commit] clock_getres.c: include unistd.h unless syscall is defined
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:31 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=f486c8ba614cefab645546568ccc541349e77f5b
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
libc/sysdeps/linux/common/clock_getres.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libc/sysdeps/linux/common/clock_getres.c b/libc/sysdeps/linux/common/clock_getres.c
index 61413b6..532047e 100644
--- a/libc/sysdeps/linux/common/clock_getres.c
+++ b/libc/sysdeps/linux/common/clock_getres.c
@@ -9,11 +9,11 @@
#include <sys/syscall.h>
#include <time.h>
-#include <unistd.h>
#ifdef __NR_clock_getres
_syscall2(int, clock_getres, clockid_t, clock_id, struct timespec*, res)
#else
+# include <unistd.h>
int clock_getres(clockid_t clock_id, struct timespec* res)
{
More information about the uClibc-cvs
mailing list