diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-09-29 20:57:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-09-29 20:57:39 +0000 |
commit | 9e818012346fbee36ba481866b3d0005ac6816ea (patch) | |
tree | 00711e32e8c2086811cc9d73524df0c0baae00bb | |
parent | 4463f8ee55798e6bc0f28cf43741f940eb6c1d7a (diff) | |
download | fetchmail-9e818012346fbee36ba481866b3d0005ac6816ea.tar.gz fetchmail-9e818012346fbee36ba481866b3d0005ac6816ea.tar.bz2 fetchmail-9e818012346fbee36ba481866b3d0005ac6816ea.zip |
Compilation fix for AIX.
svn path=/trunk/; revision=2625
-rw-r--r-- | mx.h | 3 | ||||
-rw-r--r-- | socket.c | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -9,6 +9,9 @@ struct mxentry extern struct mxentry * getmxrecords(const char *); /* some versions of FreeBSD should declare this but don't */ +/* But only declare it if it isn't already */ +#ifndef h_errno extern int h_errno; +#endif /* ndef h_errno */ /* mx.h ends here */ @@ -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 */ |