[git commit] xstatconv: cleanup includes
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:42 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=69a9120477185ee14429684724d665f69798b7d9
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
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 at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
libc/sysdeps/linux/common/xstatconv.c | 1 -
libc/sysdeps/linux/common/xstatconv.h | 1 +
2 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libc/sysdeps/linux/common/xstatconv.c b/libc/sysdeps/linux/common/xstatconv.c
index deef392..bb4a61b 100644
--- a/libc/sysdeps/linux/common/xstatconv.c
+++ b/libc/sysdeps/linux/common/xstatconv.c
@@ -20,7 +20,6 @@
Modified for uClibc by Erik Andersen <andersen at codepoet.org>
*/
-#include <sys/syscall.h>
#include <sys/stat.h>
#include <string.h>
#include "xstatconv.h"
diff --git a/libc/sysdeps/linux/common/xstatconv.h b/libc/sysdeps/linux/common/xstatconv.h
index 7568da8..1522e71 100644
--- a/libc/sysdeps/linux/common/xstatconv.h
+++ b/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;
More information about the uClibc-cvs
mailing list