From: Daiki Ueno Date: Mon, 2 Jun 2014 21:13:21 +0000 (+0900) Subject: build: Handle 'environ' global variable differently on cygwin x86_64 X-Git-Tag: v0.19.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c54909904198d6ad19fa8389a283d2683bfddbf;p=thirdparty%2Fgettext.git build: Handle 'environ' global variable differently on cygwin x86_64 Amendment to commit c97dafde. * tests/test-environ.c.diff: New file. * Makefile.am (EXTRA_DIST): Add new patch. --- diff --git a/gnulib-local/tests/test-environ.c.diff b/gnulib-local/tests/test-environ.c.diff new file mode 100644 index 000000000..6cc8f68a7 --- /dev/null +++ b/gnulib-local/tests/test-environ.c.diff @@ -0,0 +1,18 @@ +diff --git a/test-environ.c b/test-environ.c +index 46a2eab..8afecb7 100644 +--- a/test-environ.c ++++ b/test-environ.c +@@ -22,6 +22,13 @@ + + #include + ++/* environ is the exported symbol referencing the internal ++ __cygwin_environ variable on cygwin64: ++ . */ ++#if defined __CYGWIN__ && defined __x86_64__ ++extern DLL_VARIABLE char **environ; ++#endif ++ + int + main () + {