diff options
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -32,6 +32,9 @@ #include "fetchmail.h" #include "i18n.h" +/* We need to define h_errno only if it is not already */ +#ifndef h_errno + #ifdef HAVE_RES_SEARCH /* some versions of FreeBSD should declare this but don't */ extern int h_errno; @@ -40,6 +43,8 @@ extern int h_errno; static int h_errno; #endif +#endif /* ndef h_errno */ + #if NET_SECURITY #include <net/security.h> #endif /* NET_SECURITY */ |