summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ruby.h b/ruby.h
index 0cfd8f6150..4d7ee52c88 100644
--- a/ruby.h
+++ b/ruby.h
@@ -74,8 +74,12 @@ extern "C" {
#include <alloca.h>
#endif
-#if defined(__CYGWIN32__) && defined(DLLIMPORT)
+#if defined(__CYGWIN32__)
+#if defined(DLLIMPORT)
#include "import.h"
+#else
+#define environ (*__imp___cygwin_environ)
+#endif
#endif
#ifdef _AIX