From 67905e2d7c6ee273b753af22fb22de0ebec918c1 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 26 Jul 2011 13:42:12 +0200 Subject: *: work around sysinfo.h versus linux/*.h problems Signed-off-by: Denys Vlasenko --- include/libbb.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 3d31ff225..63d041957 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -52,10 +52,12 @@ #ifdef HAVE_SYS_STATFS_H # include #endif -/* struct sysinfo is linux-specific */ -#ifdef __linux__ -# include -#endif +/* Don't do this here: + * #include + * Some linux/ includes pull in conflicting definition + * of struct sysinfo (only in some toolchanins), which breaks build. + * Include sys/sysinfo.h only in those files which need it. + */ #if ENABLE_SELINUX # include # include -- cgit v1.2.3