# HG changeset patch # User Jim Meyering # Date 1218016151 -7200 # Node ID 5585c3effb248511555d48edb41b5b5f664c3bef # Parent c3ecbe083a26c676995a5fef11df332b82d92f03 inet_pton.c: use locale-independent tolower * lib/inet_pton.c: Include rather than . (inet_pton6): Use c_tolower rather than tolower. * modules/inet_pton (Depends-on): Add c-ctype. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-06 Jim Meyering + + inet_pton.c: use locale-independent tolower + * lib/inet_pton.c: Include rather than . + (inet_pton6): Use c_tolower rather than tolower. + * modules/inet_pton (Depends-on): Add c-ctype. + 2008-08-06 Paolo Bonzini * lib/poll.c (poll): Avoid division when timeout is 0, cache diff --git a/lib/inet_pton.c b/lib/inet_pton.c --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -37,7 +37,7 @@ /* Specification. */ #include -#include +#include #include #include @@ -179,7 +179,7 @@ curtok = src; saw_xdigit = 0; val = 0; - while ((ch = tolower (*src++)) != '\0') + while ((ch = c_tolower (*src++)) != '\0') { const char *pch; diff --git a/modules/inet_pton b/modules/inet_pton --- a/modules/inet_pton +++ b/modules/inet_pton @@ -6,6 +6,7 @@ m4/inet_pton.m4 Depends-on: +c-ctype socklen sys_socket arpa_inet