diff options
Diffstat (limited to 'ext/socket/addrinfo.h')
-rw-r--r-- | ext/socket/addrinfo.h | 5 |
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. */ |