on cygwin, h_errno is now "__declspec(dllimport) int h_errno"
Gurusamy Sarathy [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