OSDN Git Service

xstatconv: cleanup includes
authorPeter S. Mazinger <ps.m@gmx.net>
Sat, 23 Apr 2011 19:16:34 +0000 (21:16 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:42 +0000 (14:00 +0200)
xstatconv.h needs features.h to really "see" config options
xstatconv.c does not need sys/syscall.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/common/xstatconv.c
libc/sysdeps/linux/common/xstatconv.h

index deef392..bb4a61b 100644 (file)
@@ -20,7 +20,6 @@
    Modified for uClibc by Erik Andersen <andersen@codepoet.org>
    */
 
-#include <sys/syscall.h>
 #include <sys/stat.h>
 #include <string.h>
 #include "xstatconv.h"
index 7568da8..1522e71 100644 (file)
@@ -23,6 +23,7 @@
 /* Pull in whatever this particular arch's kernel thinks the kernel version of
  * struct stat should look like.  It turns out that each arch has a different
  * opinion on the subject, and different kernel revs use different names... */
+#include <features.h>
 #include <bits/kernel_stat.h>
 
 extern void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) attribute_hidden;