use unistd.h before _POSIX_VERSION
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 8 Feb 2011 04:35:04 +0000 (05:35 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 8 Feb 2011 04:35:04 +0000 (05:35 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
include/platform.h

index 78b390611ad345db9a554dd230c1aa26a4607ddb..d390e68401fe3903822989d8773240aa66cd5acb 100644 (file)
@@ -39,7 +39,6 @@
 #include <sys/wait.h>
 #include <termios.h>
 #include <time.h>
-#include <unistd.h>
 #include <sys/param.h>
 #ifdef HAVE_MNTENT_H
 # include <mntent.h>
index f0b8ec10ac6d128891df0b2eec2f1d29ed358610..00ebe563b07200b5d76b4d9700921255c0d77339 100644 (file)
@@ -362,6 +362,7 @@ typedef unsigned smalluint;
 
 #endif
 
+#include <unistd.h>
 #if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L) || defined(__GLIBC__)
 # define fdprintf dprintf
 #endif