use unistd.h before _POSIX_VERSION
[oweals/busybox.git] / include / platform.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