summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-22 00:19:24 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:31 +0200
commitf486c8ba614cefab645546568ccc541349e77f5b (patch)
tree769e37810306fe51451dc16d001c442860727ad5
parent8396ab5eef50a85469ce932e28ba4afe4f6ef668 (diff)
clock_getres.c: include unistd.h unless syscall is defined
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--libc/sysdeps/linux/common/clock_getres.c2
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 61413b6c4..532047ede 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)
{