From: Ken Raeburn Date: Fri, 31 Aug 2001 23:00:12 +0000 (+0000) Subject: use a different macro in fake-addrinfo.h to tell fake-addrinfo.c to define fns X-Git-Tag: krb5-1.3-alpha1~1101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=72d7904bdd87c02c0160809b2f1b19e607f7b4e3;p=krb5.git 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 --- 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