aboutsummaryrefslogtreecommitdiffstats
path: root/libesmtp/getaddrinfo.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-08-28 14:59:23 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-08-28 14:59:23 +0000
commite073fea25d254e62b2d3cf607bdbbb5104ca9778 (patch)
treee8a9c40b8dfe427315ddc945f74e1a3fed8217e2 /libesmtp/getaddrinfo.h
parent2927f46cfd4abd60a77862fa0746aca40c3d1235 (diff)
downloadfetchmail-e073fea25d254e62b2d3cf607bdbbb5104ca9778.tar.gz
fetchmail-e073fea25d254e62b2d3cf607bdbbb5104ca9778.tar.bz2
fetchmail-e073fea25d254e62b2d3cf607bdbbb5104ca9778.zip
Add gethostby* from libesmtp
svn path=/trunk/; revision=4278
Diffstat (limited to 'libesmtp/getaddrinfo.h')
-rw-r--r--libesmtp/getaddrinfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libesmtp/getaddrinfo.h b/libesmtp/getaddrinfo.h
index c474d3bc..1d7bf3cc 100644
--- a/libesmtp/getaddrinfo.h
+++ b/libesmtp/getaddrinfo.h
@@ -24,6 +24,9 @@
/* Structure and prototypes aken from RFC 2553 */
+#include <config.h>
+#ifndef HAVE_GETADDRINFO
+
struct addrinfo
{
int ai_flags; /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */
@@ -53,6 +56,7 @@ struct addrinfo
#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
#define EAI_SYSTEM 11 /* system error returned in errno */
+#define EAI_OVERFLOW 12 /* argument buffer too small */
/* RFC 2553 / Posix resolver */
int getaddrinfo (const char *nodename, const char *servname,
@@ -65,3 +69,4 @@ void freeaddrinfo (struct addrinfo *ai);
const char *gai_strerror (int code);
#endif
+#endif