From 72d7904bdd87c02c0160809b2f1b19e607f7b4e3 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 31 Aug 2001 23:00:12 +0000 Subject: [PATCH] use a different macro in fake-addrinfo.h to tell fake-addrinfo.c to define fns git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13717 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 3 +++ src/include/fake-addrinfo.c | 2 +- src/include/fake-addrinfo.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index dbcd61e7a..ecd2e82fb 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,5 +1,8 @@ 2001-08-31 Ken Raeburn + * fake-addrinfo.c: Test only HAVE_FAKE_GETADDRINFO. + * fake-addrinfo.h: Define it, when remapping symbols. + * socket-utils.h (struct krb5int_sockaddr_storage, sockaddr_storage): Conditionalize on HAVE_STRUCT_SOCKADDR_STORAGE instead of KRB5_USE_INET6. diff --git a/src/include/fake-addrinfo.c b/src/include/fake-addrinfo.c index c73ecf527..333a6b16c 100644 --- a/src/include/fake-addrinfo.c +++ b/src/include/fake-addrinfo.c @@ -48,7 +48,7 @@ #include "fake-addrinfo.h" -#if !defined (HAVE_GETADDRINFO) || defined (BROKEN_GETADDRINFO) +#ifdef HAVE_FAKE_GETADDRINFO static int translate_h_errno (int h); diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h index 92912ae16..8d109a2e5 100644 --- a/src/include/fake-addrinfo.h +++ b/src/include/fake-addrinfo.h @@ -146,6 +146,7 @@ void freeaddrinfo (struct addrinfo *ai); char *gai_strerror (int code); +#define HAVE_FAKE_GETADDRINFO #define HAVE_GETADDRINFO #undef HAVE_GETNAMEINFO #define HAVE_GETNAMEINFO -- 2.26.2