diff options
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/sockport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h index d19b1e1dba..e1cddf53f4 100644 --- a/ext/socket/sockport.h +++ b/ext/socket/sockport.h @@ -69,4 +69,8 @@ # define PF_INET AF_INET #endif +#if defined(HOST_NOT_FOUND) && !defined(h_errno) && !defined(__CYGWIN__) +extern int h_errno; +#endif + #endif |