Преглед изворни кода

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>
Bernhard Reutner-Fischer пре 14 година
родитељ
комит
4d55daf546
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      libc/sysdeps/linux/common/futimens.c

+ 6 - 1
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;