diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-08 04:51:28 +0000 | 
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-08 04:51:28 +0000 | 
| commit | a920808b219ce74ae7e5e3f52bcbfe67884c5087 (patch) | |
| tree | 0fcf572a9963925f7d9fc209e2c5694de0e43fcd /libc/inet/getaddrinfo.c | |
| parent | c5ad60615407d6f54807ed52656d962d1dcbbe3e (diff) | |
| download | uClibc-alpine-a920808b219ce74ae7e5e3f52bcbfe67884c5087.tar.bz2 uClibc-alpine-a920808b219ce74ae7e5e3f52bcbfe67884c5087.tar.xz  | |
Merge from trunk.
Diffstat (limited to 'libc/inet/getaddrinfo.c')
| -rw-r--r-- | libc/inet/getaddrinfo.c | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c index c467fed69..e896e3449 100644 --- a/libc/inet/getaddrinfo.c +++ b/libc/inet/getaddrinfo.c @@ -45,7 +45,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  /* This software is Copyright 1996 by Craig Metz, All Rights Reserved.  */  #define getservbyname_r __getservbyname_r +#define gethostbyname_r __gethostbyname_r +#define gethostbyname2_r __gethostbyname2_r +#define gethostbyaddr_r __gethostbyaddr_r  #if 0 +#define uname __uname  #define stpcpy __stpcpy  /* strdupa is using these */  #define memcpy __memcpy @@ -767,8 +771,8 @@ static struct gaih gaih[] =      { PF_UNSPEC, NULL }  }; -int -getaddrinfo (const char *name, const char *service, +int attribute_hidden +__getaddrinfo (const char *name, const char *service,  	     const struct addrinfo *hints, struct addrinfo **pai)  {      int i = 0, j = 0, last_i = 0; @@ -866,6 +870,7 @@ getaddrinfo (const char *name, const char *service,      return last_i ? -(last_i & GAIH_EAI) : EAI_NONAME;  } +strong_alias(__getaddrinfo,getaddrinfo)  void  freeaddrinfo (struct addrinfo *ai)  | 
