+2014-06-02 Daiki Ueno <ueno@gnu.org>
+
+ build: Handle 'environ' global variable differently on cygwin x86_64
+ Problem reported by Vasyl Khalak in:
+ <https://cygwin.com/ml/cygwin/2013-06/msg00228.html>.
+ * lib/execute.c.diff: New file.
+ * lib/spawn-pipe.c.diff: Likewise.
+ * Makefile.am (EXTRA_DIST): Add new patches.
+
2014-05-14 Daiki Ueno <ueno@gnu.org>
Update after gnulib changed.
lib/error-progname.c \
lib/error-progname.h \
lib/exitfail.h.diff \
+lib/execute.c.diff \
lib/fd-ostream.oo.c \
lib/fd-ostream.oo.h \
lib/file-ostream.oo.c \
lib/progname.h.diff \
lib/regexec.c.diff \
lib/regex_internal.h.diff \
+lib/spawn-pipe.c.diff \
lib/styled-ostream.oo.c \
lib/styled-ostream.oo.h \
lib/term-ostream.oo.c \
--- /dev/null
+diff --git a/execute.c b/execute.c
+index e7b4496..1c342da 100644
+--- a/execute.c
++++ b/execute.c
+@@ -48,6 +48,13 @@
+
+ #endif
+
++/* environ is the exported symbol referencing the internal
++ __cygwin_environ variable on cygwin64:
++ <https://cygwin.com/ml/cygwin/2013-06/msg00228.html>. */
++#if defined __CYGWIN__ && defined __x86_64__
++extern DLL_VARIABLE char **environ;
++#endif
++
+ /* The results of open() in this file are not used with fchdir,
+ therefore save some unnecessary work in fchdir.c. */
+ #undef open
--- /dev/null
+diff --git a/spawn-pipe.c b/spawn-pipe.c
+index b3f9e0c..965fb3a 100644
+--- a/spawn-pipe.c
++++ b/spawn-pipe.c
+@@ -48,6 +48,13 @@
+
+ #endif
+
++/* environ is the exported symbol referencing the internal
++ __cygwin_environ variable on cygwin64:
++ <https://cygwin.com/ml/cygwin/2013-06/msg00228.html>. */
++#if defined __CYGWIN__ && defined __x86_64__
++extern DLL_VARIABLE char **environ;
++#endif
++
+ /* The results of open() in this file are not used with fchdir,
+ therefore save some unnecessary work in fchdir.c. */
+ #undef open