Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182205 Details for
Bug 250468
sys-libs/glibc-2.9_p20081201 cannot resolve certain names
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
workaround while theres no fix
addrconfig.c (text/plain), 988 bytes, created by
gfl3162+gbugzilla
on 2009-02-16 06:43:47 UTC
(
hide
)
Description:
workaround while theres no fix
Filename:
MIME Type:
Creator:
gfl3162+gbugzilla
Created:
2009-02-16 06:43:47 UTC
Size:
988 bytes
patch
obsolete
>// taken from http://forums.mozillazine.org/viewtopic.php?f=38&t=84574&p=638331 >// compile with gcc addrconfig.c -o addrconfig.so -shared -ldl -nostartfiles -fpic >// put /path/to/addrconfig.so in /etc/ld.so.preload >#include <stdlib.h> >#include <stdio.h> >#include <string.h> >#include <sys/types.h> >#include <sys/socket.h> >#include <netdb.h> >#define __USE_GNU >#include <dlfcn.h> >#include <errno.h> > >int (*real_getaddrinfo)(const char *, const char *, const struct addrinfo *, struct addrinfo **); > >void _init (void) >{ > const char *err; > > real_getaddrinfo = dlsym (RTLD_NEXT, "getaddrinfo"); > if ((err = dlerror ()) != NULL) > fprintf (stderr, "dlsym (getaddrinfo): %s\n", err); >} > >int getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res) >{ > struct addrinfo newhints; > memcpy (&newhints, hints, sizeof (struct addrinfo)); > newhints.ai_flags |= AI_ADDRCONFIG; > int retval = real_getaddrinfo(node, service, &newhints, res); > return retval; >}
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
Actions:
View
Attachments on
bug 250468
:
175555
| 182205