prevent build error from a type mismatch of ftruncate().
Msys has a unistd.h file and it defines ftruncate() with off_t, and
then it will causes build error after we redefine ftruncate() as
__la_ftruncate(int, int64_t).
SVN-Revision: 2438
#include <sys/stat.h>
#include <process.h>
#include <direct.h>
+#if defined(__MINGW32__) && defined(HAVE_UNISTD_H)
+/* Prevent build error from a type mismatch of ftruncate().
+ * This unistd.h defines it as ftruncate(int, off_t). */
+#include <unistd.h>
+#endif
#define NOCRYPT
#include <windows.h>
//#define EFTYPE 7