[git commit master 1/1] use unistd.h before _POSIX_VERSION

Denys Vlasenko vda.linux at googlemail.com
Tue Feb 8 04:35:04 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=698e8095fa8d5b5b039168205dd24698b95dc6a6
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 include/libbb.h    |    1 -
 include/platform.h |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/libbb.h b/include/libbb.h
index 78b3906..d390e68 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -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>
diff --git a/include/platform.h b/include/platform.h
index f0b8ec1..00ebe56 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -362,6 +362,7 @@ typedef unsigned smalluint;
 
 #endif
 
+#include <unistd.h>
 #if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L) || defined(__GLIBC__)
 # define fdprintf dprintf
 #endif
-- 
1.7.3.4



More information about the busybox-cvs mailing list