The Samba-Bugzilla – Attachment 5293 Details for
Bug 5910
getaddrinfo failed for name 0.0.0.0 [Invalid flags in hints] for AIX 5.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-libreplace-Attempt-to-fix-bug-5910-detect-a-broken.patch (text/plain), 1.47 KB, created by
Volker Lendecke
on 2010-02-07 11:14:37 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2010-02-07 11:14:37 UTC
Size:
1.47 KB
patch
obsolete
>From 392f7fb61258ebc266c54d41eb43be3792b462d9 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sun, 7 Feb 2010 18:09:11 +0100 >Subject: [PATCH] libreplace: Attempt to fix bug 5910, detect a broken getaddrinfo > >--- > lib/replace/libreplace_network.m4 | 22 ++++++++++++++++++++++ > 1 files changed, 22 insertions(+), 0 deletions(-) > >diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 >index b7d15ea..a0a02de 100644 >--- a/lib/replace/libreplace_network.m4 >+++ b/lib/replace/libreplace_network.m4 >@@ -226,6 +226,28 @@ ret = getnameinfo(&sa, sizeof(sa), > > ], > libreplace_cv_HAVE_GETADDRINFO=yes,libreplace_cv_HAVE_GETADDRINFO=no)]) >+ >+if test x"$libreplace_cv_HAVE_GETADDRINFO" = x"yes"; then >+ AC_TRY_RUN([ >+ #include <stddef.h> >+ #include <sys/types.h> >+ #include <sys/socket.h> >+ #include <netdb.h> >+ int main(int argc, const char *argv[]) >+ { >+ struct addrinfo hints = {0,}; >+ struct addrinfo *ppres; >+ const char hostname[] = "0.0.0.0"; >+ hints.ai_socktype = SOCK_STREAM; >+ hints.ai_family = AF_INET; >+ hints.ai_flags = >+ AI_NUMERICHOST|AI_PASSIVE|AI_ADDRCONFIG; >+ return getaddrinfo(hostname, NULL, &hints, &ppres) != 0 ? 1 : 0; >+ }], >+ libreplace_cv_HAVE_GETADDRINFO=yes, >+ libreplace_cv_HAVE_GETADDRINFO=no) >+fi >+ > if test x"$libreplace_cv_HAVE_GETADDRINFO" = x"yes"; then > AC_DEFINE(HAVE_GETADDRINFO,1,[Whether the system has getaddrinfo]) > AC_DEFINE(HAVE_GETNAMEINFO,1,[Whether the system has getnameinfo]) >-- >1.6.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 5910
: 5293