diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-03-05 22:20:42 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-03-05 22:20:42 +0100 |
commit | 7af830a55a6cb82ff4f7e1102f28e1def1b2e193 (patch) | |
tree | 1e6e3720d9f8ac6d872dcb362c08f6dadd10f68a /socket.c | |
parent | c41317d22a0cc6a673dfc226d890e18f60ca5883 (diff) | |
download | fetchmail-7af830a55a6cb82ff4f7e1102f28e1def1b2e193.tar.gz fetchmail-7af830a55a6cb82ff4f7e1102f28e1def1b2e193.tar.bz2 fetchmail-7af830a55a6cb82ff4f7e1102f28e1def1b2e193.zip |
Properly check for h_errno declaration and include netdb.h.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -75,15 +75,9 @@ static ssize_t cygwin_read(int sock, void *buf, size_t count); /* 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 */ +# if !HAVE_DECL_H_ERRNO extern int h_errno; -#else -/* pretend we have h_errno to avoid some #ifdef's later */ -static int h_errno; -#endif - +# endif #endif /* ndef h_errno */ #ifdef HAVE_SOCKETPAIR |