File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
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
+
1
6
Wed Feb 27 16:31:38 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
2
7
3
8
* stable version 1.6.7 released.
Original file line number Diff line number Diff line change @@ -154,7 +154,10 @@ extern int getnameinfo __P((
154
154
155
155
extern void freehostent __P ((struct hostent * ) );
156
156
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 ));
158
161
159
162
/* In case there is no definition of offsetof() provided - though any proper
160
163
Standard C system should have one. */
Original file line number Diff line number Diff line change @@ -191,7 +191,10 @@ if (pai->ai_flags & AI_CANONNAME) {\
191
191
192
192
#define ERR (err ) { error = (err); goto bad; }
193
193
194
- const char *
194
+ #if defined __UCLIBC__
195
+ const
196
+ #endif
197
+ char *
195
198
gai_strerror (ecode )
196
199
int ecode ;
197
200
{
You can’t perform that action at this time.
0 commit comments