Mercurial > hg > octave-nkf > gnulib-hg
changeset 6198:4270667abdee
* lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
to avoid a collision with bits/local_lim.h in glibc.
All uses changed. Problem reported by Dmitry V. Levin in
<http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 01 Sep 2005 22:36:04 +0000 |
parents | 4b3066daba2f |
children | b71216f1bb18 |
files | lib/ChangeLog lib/glob.c |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,10 @@ 2005-09-01 Paul Eggert <eggert@cs.ucla.edu> + * glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX, + to avoid a collision with bits/local_lim.h in glibc. + All uses changed. Problem reported by Dmitry V. Levin in + <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>. + * regex_internal.c (build_wcs_upper_buffer): Fix portability bugs in int versus size_t comparisons. (re_string_context_at): Fix bug where the code assumed that
--- a/lib/glob.c +++ b/lib/glob.c @@ -184,9 +184,9 @@ # define GETPW_R_SIZE_MAX() (-1) #endif #ifdef _SC_LOGIN_NAME_MAX -# define LOGIN_NAME_MAX() sysconf (_SC_LOGIN_NAME_MAX) +# define GET_LOGIN_NAME_MAX() sysconf (_SC_LOGIN_NAME_MAX) #else -# define LOGIN_NAME_MAX() (-1) +# define GET_LOGIN_NAME_MAX() (-1) #endif static const char *next_brace_sub (const char *begin, int flags) __THROW; @@ -531,7 +531,7 @@ { int success; char *name; - size_t buflen = LOGIN_NAME_MAX() + 1; + size_t buflen = GET_LOGIN_NAME_MAX() + 1; if (buflen == 0) /* `sysconf' does not support _SC_LOGIN_NAME_MAX. Try