fix printf warning
[oweals/busybox.git] / libbb / loop.c
index e2287b5ba2a7321dced75dc6865d682002e97a19..8c3ad2ce03c390f9317fe4d62d8d05236094d0b4 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
+#include <features.h>
+#if defined (__GLIBC__) && !defined(__UCLIBC__)
+#include <linux/posix_types.h>
+#endif
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -30,7 +34,6 @@
 /* Grumble...  The 2.6.x kernel breaks asm/posix_types.h
  * so we get to try and cope as best we can... */
 #include <linux/version.h>
-#include <asm/posix_types.h>
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 #define __bb_kernel_dev_t   __kernel_old_dev_t