]> Pileus Git - ~andy/fetchmail/blobdiff - libesmtp/gethostbyname.c
Attempt merging from 6.3.24.
[~andy/fetchmail] / libesmtp / gethostbyname.c
index cd74ec0aaf489273c90d12ced63c40aa9de6134e..af5da953a92a0805c055c1aa1827884c3f03b1b5 100644 (file)
 
 #include "gethostbyname.h"
 
-#if HAVE_GETIPNODEBYNAME
-
-void
-free_ghbnctx (struct ghbnctx *ctx)
-{
-  assert (ctx != NULL);
-
-  if (ctx->hostent != NULL)
-    freehostent (ctx->hostent);
-}
-
-struct hostent *
-gethostbyname_ctx (const char *host, struct ghbnctx *ctx)
-{
-  assert (ctx != NULL);
-
-  memset (ctx, 0, sizeof (struct ghbnctx));
-  ctx->hostent = getipnodebyname (host, AF_UNSPEC, AI_ADDRCONFIG, &ctx->h_err);
-  return ctx->hostent;
-}
-
-int
-h_error_ctx (struct ghbnctx *ctx)
-{
-  assert (ctx != NULL);
-
-  return ctx->h_err;
-}
-
-#elif HAVE_GETHOSTBYNAME_R == 6
+#if HAVE_GETHOSTBYNAME_R == 6
 
 void
 free_ghbnctx (struct ghbnctx *ctx)