* lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Sep 2005 22:36:04 +0000 (22:36 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Sep 2005 22:36:04 +0000 (22:36 +0000)
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>.

lib/ChangeLog
lib/glob.c

index ecb3b60..091cdc7 100644 (file)
@@ -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
index 7499c5b..f2db01b 100644 (file)
 # 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
 \f
 static const char *next_brace_sub (const char *begin, int flags) __THROW;
@@ -531,7 +531,7 @@ glob (const char *pattern, int flags,
            {
              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