summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-02 11:19:19 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-02 11:19:19 +0000
commitdf4e335fb6f784af31de56465cdc0b78a95521e1 (patch)
treef71407d97d578c0a545118841b3dcd179f33c551 /pp_sys.c
parenta2dab6bc84ef60a347f02acb58747ad73061f431 (diff)
downloadperl-df4e335fb6f784af31de56465cdc0b78a95521e1.tar.gz
on cygwin, h_errno is now "__declspec(dllimport) int h_errno"
(from Eric Fifer <EFifer@sanwaint.com>) p4raw-id: //depot/perl@4965
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index df0fb42ff1..59811e23dc 100644
--- 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