summaryrefslogtreecommitdiff
path: root/ext/socket/addrinfo.h
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-01 02:32:21 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-01 02:32:21 +0000
commit1188f3f1d947a9fe7d87c15ef226d383347b107a (patch)
treeb7dc008d6846f3dba3c99b6d240d608e0c85ee4e /ext/socket/addrinfo.h
parenta5ecc30e7d3570398dfa7b7d89b520989f61f75f (diff)
* 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
Diffstat (limited to 'ext/socket/addrinfo.h')
-rw-r--r--ext/socket/addrinfo.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h
index aaa309cfdd..bd3de72e10 100644
--- a/ext/socket/addrinfo.h
+++ b/ext/socket/addrinfo.h
@@ -154,7 +154,10 @@ extern int getnameinfo __P((
extern void freehostent __P((struct hostent *));
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
Standard C system should have one. */