diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-27 04:30:20 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-27 04:30:20 +0000 |
| commit | 23ec00cd5e3fbfbe56277f1a899ccafeb71352c0 (patch) | |
| tree | 747012b989525a9a04971ea4c7580173aa92e879 /ext | |
| parent | c9ec7f2b517b7601b2708a88134cff06818987c8 (diff) | |
| download | ruby-23ec00cd5e3fbfbe56277f1a899ccafeb71352c0.tar.gz ruby-23ec00cd5e3fbfbe56277f1a899ccafeb71352c0.tar.xz ruby-23ec00cd5e3fbfbe56277f1a899ccafeb71352c0.zip | |
* io.c (READ_DATA_PENDING): uClibc support.
* random.c (rand_init): ditto.
* ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/socket/addrinfo.h | 2 | ||||
| -rw-r--r-- | ext/socket/getaddrinfo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h index 6000a466b..aaa309cfd 100644 --- a/ext/socket/addrinfo.h +++ b/ext/socket/addrinfo.h @@ -154,7 +154,7 @@ extern int getnameinfo __P(( extern void freehostent __P((struct hostent *)); extern void freeaddrent __P((struct addrinfo *)); -extern char *gai_strerror __P((int)); +extern const char *gai_strerror __P((int)); /* In case there is no definition of offsetof() provided - though any proper Standard C system should have one. */ diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c index d518017bc..863d31ea6 100644 --- a/ext/socket/getaddrinfo.c +++ b/ext/socket/getaddrinfo.c @@ -191,7 +191,7 @@ if (pai->ai_flags & AI_CANONNAME) {\ #define ERR(err) { error = (err); goto bad; } -char * +const char * gai_strerror(ecode) int ecode; { |
