Browse Source

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>
Peter S. Mazinger 13 years ago
parent
commit
f486c8ba61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/common/clock_getres.c

+ 1 - 1
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)
 {