Commit fd7f92b6f008e0684c3eb8308aca92e20382506e

Alexei Podtelezhnikov 2021-02-03T14:44:14

* builds/unix/configure.raw [mmap]: Restore default path. Fixes #1023.

diff --git a/ChangeLog b/ChangeLog
index 4f4af4e..05884b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-02-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* builds/unix/configure.raw [mmap]: Restore default path.
+
+	Fixes #1023.
+
 2021-02-03  Werner Lemberg  <wl@gnu.org>
 
 	[psaux] Fix integer overflow.
diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw
index 816d6b8..c0c8592 100644
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -204,9 +204,8 @@ if test "x${enable_mmap}" != "xno"; then
   case "$host" in
   *-*-mingw*)
     AC_MSG_CHECKING([for working mmap])
-    AC_MSG_RESULT([using Windows-specific equivalent])
+    AC_MSG_RESULT([using MapViewOfFile in Windows])
     FTSYS_SRC='$(TOP_DIR)/builds/windows/ftsystem.c'
-    AC_SUBST([FTSYS_SRC])
     ;;
   *)
     AC_FUNC_MMAP
@@ -226,12 +225,17 @@ if test "x${enable_mmap}" != "xno"; then
         ])
 
       FT_MUNMAP_PARAM
-      AC_SUBST([FTSYS_SRC])
     fi
     ;;
   esac
 fi
 
+if test -z "$FTSYS_SRC"; then
+  FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
+fi
+AC_SUBST([FTSYS_SRC])
+
+
 AC_CHECK_FUNCS([memcpy memmove])