This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
on cygwin, h_errno is now "__declspec(dllimport) int h_errno"
authorGurusamy Sarathy <gsar@cpan.org>
Wed, 2 Feb 2000 11:19:19 +0000 (11:19 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Wed, 2 Feb 2000 11:19:19 +0000 (11:19 +0000)
(from Eric Fifer <EFifer@sanwaint.com>)

p4raw-id: //depot/perl@4965

pp_sys.c

index df0fb42..59811e2 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -77,7 +77,7 @@ extern "C" int syscall(unsigned long,...);
    compiling multithreaded and singlethreaded ($ccflags et al).
    HOST_NOT_FOUND is typically defined in <netdb.h>.
 */
-#if defined(HOST_NOT_FOUND) && !defined(h_errno)
+#if defined(HOST_NOT_FOUND) && !defined(h_errno) && !defined(__CYGWIN__)
 extern int h_errno;
 #endif