use a different macro in fake-addrinfo.h to tell fake-addrinfo.c to define fns
authorKen Raeburn <raeburn@mit.edu>
Fri, 31 Aug 2001 23:00:12 +0000 (23:00 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 31 Aug 2001 23:00:12 +0000 (23:00 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13717 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/fake-addrinfo.c
src/include/fake-addrinfo.h

index dbcd61e7a5f2f5014c002451e653b82eec8a500f..ecd2e82fbae5824a96fa30cd2e4a41ed733fb538 100644 (file)
@@ -1,5 +1,8 @@
 2001-08-31  Ken Raeburn  <raeburn@mit.edu>
 
+       * 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.
index c73ecf527e6842bddc05c1d815a65b80b356ed3d..333a6b16ce3899b4b63b415c0fcd7a687c220b2d 100644 (file)
@@ -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);
 
index 92912ae16e99f2639679178d20b7c13a7b102d04..8d109a2e5f0917930d19de636f0cdd6b6da631e2 100644 (file)
@@ -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