Skip to content

Commit af20a0f

Browse files
committed
* ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): add const
qualifier only for uClibc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 42d221f commit af20a0f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Fri Mar 1 11:29:10 2002 WATANABE Hirofumi <eban@ruby-lang.org>
2+
3+
* ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): add const
4+
qualifier only for uClibc.
5+
16
Wed Feb 27 16:31:38 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
27

38
* stable version 1.6.7 released.

ext/socket/addrinfo.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ extern int getnameinfo __P((
154154

155155
extern void freehostent __P((struct hostent *));
156156
extern void freeaddrent __P((struct addrinfo *));
157-
extern const char *gai_strerror __P((int));
157+
#if defined __UCLIBC__
158+
const
159+
#endif
160+
extern char *gai_strerror __P((int));
158161

159162
/* In case there is no definition of offsetof() provided - though any proper
160163
Standard C system should have one. */

ext/socket/getaddrinfo.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ if (pai->ai_flags & AI_CANONNAME) {\
191191

192192
#define ERR(err) { error = (err); goto bad; }
193193

194-
const char *
194+
#if defined __UCLIBC__
195+
const
196+
#endif
197+
char *
195198
gai_strerror(ecode)
196199
int ecode;
197200
{

0 commit comments

Comments
 (0)