diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-23 09:43:58 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-23 09:43:58 +0100 |
commit | 4d55daf5468b61c9aaef83d92e381e55948614e8 (patch) | |
tree | fc72f18110de9e7276cf9952a963a4c53dcc66e1 /libc/sysdeps/linux/common | |
parent | b65c7b2c79debcb9017e31913e01eeaa280106fb (diff) |
futimens: Ducument why we need manual hidden_proto
Also, remove unneeded __need_timespec (It cuts off a tiny bit of
work for CPP but is of course not strictly needed).
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/futimens.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/futimens.c b/libc/sysdeps/linux/common/futimens.c index 090dfa69c..32b21395b 100644 --- a/libc/sysdeps/linux/common/futimens.c +++ b/libc/sysdeps/linux/common/futimens.c @@ -8,9 +8,14 @@ */ #include <sys/syscall.h> -#define __need_timespec #include <time.h> #ifdef __NR_utimensat +/* To avoid superfluous warnings about passing NULL to the non-null annotated + * 2nd param "__path" below, we bypass inclusion of sys/stat.h and use + * a non annotated, local decl. + * Note that due to not including the header, we have to alias the call + * manually. + */ extern int utimensat (int __fd, __const char *__path, __const struct timespec __times[2], int __flags) __THROW; |