Browse Source

xstatconv: cleanup includes

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>
Peter S. Mazinger 14 years ago
parent
commit
69a9120477
2 changed files with 1 additions and 1 deletions
  1. 0 1
      libc/sysdeps/linux/common/xstatconv.c
  2. 1 0
      libc/sysdeps/linux/common/xstatconv.h

+ 0 - 1
libc/sysdeps/linux/common/xstatconv.c

@@ -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"

+ 1 - 0
libc/sysdeps/linux/common/xstatconv.h

@@ -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;