summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-02-08 05:35:04 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-02-08 05:35:04 +0100
commit698e8095fa8d5b5b039168205dd24698b95dc6a6 (patch)
treea25eefeb855704cd41b95f4e4c416a50e60fa229
parent66c5b12dbf85142eea257ba6047191d7c0ee43f3 (diff)
use unistd.h before _POSIX_VERSION
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--include/libbb.h1
-rw-r--r--include/platform.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 78b390611..d390e6840 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 f0b8ec10a..00ebe563b 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