summaryrefslogtreecommitdiff
path: root/gnulib-local/tests/test-environ.c.diff
blob: 6cc8f68a750add1d1b8cab8313c0dfb20fa5c949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 <string.h>
 
+/* 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
+
 int
 main ()
 {