diff --git a/src/config-win32.h b/src/config-win32.h
index b9c407060066e3f9f7a541657e301b9f6670202f..bfd014ef0d49e4197ba4c0f9b11199d30a2698e9 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -2,6 +2,11 @@
 /* Define if you have the stricmp function.  */
 #define HAVE_STRICMP 1
 
+#ifdef MINGW32
+/* Define to 1 if you have the `ftruncate' function. */
+#define HAVE_FTRUNCATE 1
+#endif
+
 /* Define to 1 if you want the built-in manual */
 #define USE_MANUAL 1