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 () {