From a9e9697994a08600f5dbb46a1fe2a07233cb4890 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 4 Nov 1999 08:39:57 +0000 Subject: 19991104 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index 1e53b9a653..feb3778d54 100644 --- a/error.c +++ b/error.c @@ -26,8 +26,11 @@ int sys_nerr = 256; #endif -#if defined __CYGWIN__ && defined _sys_nerr -#define sys_nerr _sys_nerr +#if defined __CYGWIN__ +# include +# if (CYGWIN_VERSION_API_MAJOR > 0) || (CYGWIN_VERSION_API_MINOR >= 8) +# define sys_nerr _sys_nerr +# endif #endif int ruby_nerrs; @@ -442,7 +445,7 @@ static const syserr_index_entry syserr_index[]= { static VALUE *syserr_list; #endif -#ifndef NT +#if !defined NT && !defined sys_nerr extern int sys_nerr; #endif -- cgit v1.2.3