* ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): add const
qualifier only for uClibc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a5ecc30e7d
commit
1188f3f1d9
@ -1,3 +1,8 @@
|
|||||||
|
Fri Mar 1 11:29:10 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): add const
|
||||||
|
qualifier only for uClibc.
|
||||||
|
|
||||||
Fri Mar 1 11:22:51 2002 Amos Gouaux <amos+ruby@utdallas.edu>
|
Fri Mar 1 11:22:51 2002 Amos Gouaux <amos+ruby@utdallas.edu>
|
||||||
|
|
||||||
* lib/net/imap.rb: added document.
|
* lib/net/imap.rb: added document.
|
||||||
|
@ -154,7 +154,10 @@ extern int getnameinfo __P((
|
|||||||
|
|
||||||
extern void freehostent __P((struct hostent *));
|
extern void freehostent __P((struct hostent *));
|
||||||
extern void freeaddrent __P((struct addrinfo *));
|
extern void freeaddrent __P((struct addrinfo *));
|
||||||
extern const char *gai_strerror __P((int));
|
#if defined __UCLIBC__
|
||||||
|
const
|
||||||
|
#endif
|
||||||
|
extern char *gai_strerror __P((int));
|
||||||
|
|
||||||
/* In case there is no definition of offsetof() provided - though any proper
|
/* In case there is no definition of offsetof() provided - though any proper
|
||||||
Standard C system should have one. */
|
Standard C system should have one. */
|
||||||
|
@ -191,7 +191,10 @@ if (pai->ai_flags & AI_CANONNAME) {\
|
|||||||
|
|
||||||
#define ERR(err) { error = (err); goto bad; }
|
#define ERR(err) { error = (err); goto bad; }
|
||||||
|
|
||||||
const char *
|
#if defined __UCLIBC__
|
||||||
|
const
|
||||||
|
#endif
|
||||||
|
char *
|
||||||
gai_strerror(ecode)
|
gai_strerror(ecode)
|
||||||
int ecode;
|
int ecode;
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user