From e073fea25d254e62b2d3cf607bdbbb5104ca9778 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 28 Aug 2005 14:59:23 +0000 Subject: Add gethostby* from libesmtp svn path=/trunk/; revision=4278 --- libesmtp/getaddrinfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libesmtp/getaddrinfo.h') 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 +#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 -- cgit v1.2.3