summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gnulib-local/ChangeLog7
-rw-r--r--gnulib-local/lib/clean-temp.c.diff14
2 files changed, 21 insertions, 0 deletions
diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog
index 10e67c4..d02fa90 100644
--- a/gnulib-local/ChangeLog
+++ b/gnulib-local/ChangeLog
@@ -1,3 +1,10 @@
+2015-07-14 Daiki Ueno <ueno@gnu.org>
+
+ gnulib-local: Fix Java compilation on mingw
+ * lib/clean-temp.c.diff: New file, from m4.
+ Suggested by Eric Blake in:
+ <https://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00044.html>.
+
2015-07-10 Daiki Ueno <ueno@gnu.org>
* gettext 0.19.5 released.
diff --git a/gnulib-local/lib/clean-temp.c.diff b/gnulib-local/lib/clean-temp.c.diff
new file mode 100644
index 0000000..2eafde6
--- /dev/null
+++ b/gnulib-local/lib/clean-temp.c.diff
@@ -0,0 +1,14 @@
+diff --git i/lib/clean-temp.c w/lib/clean-temp.c
+index 40ec02f..1053312 100644
+--- i/lib/clean-temp.c
++++ w/lib/clean-temp.c
+@@ -582,6 +582,9 @@ static bool
+ supports_delete_on_close ()
+ {
+ static int known; /* 1 = yes, -1 = no, 0 = unknown */
++ /* M4 wants to close and later reopen a temporary file, so
++ delete-on-close must not be used. */
++ known = -1;
+ if (!known)
+ {
+ OSVERSIONINFO v;