CVS update: /ccvs/lib/
[email protected] 19 May 2005 23:32:17 -0000
| Newsgroups | gmane.comp.version-control.cvs.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dprice Date: 05/05/19 16:32:17 Modified: /ccvs/lib/ ChangeLog, glob.c Log: * glob.c: Use POSIX getpwnam_r on Solaris. File Changes: Directory: /ccvs/lib/ ===================== File [changed]: ChangeLog Url: https://ccvs.cvshome.org/source/browse/ccvs/lib/ChangeLog?r1=1.430&r2=1.431 Delta lines: +4 -0 ------------------- --- ChangeLog 19 May 2005 22:53:55 -0000 1.430 +++ ChangeLog 19 May 2005 23:32:14 -0000 1.431 @@ -1,5 +1,9 @@ 2005-05-19 Derek Price <[email protected]> + * glob.c: Use POSIX getpwnam_r on Solaris. + +2005-05-19 Derek Price <[email protected]> + * glob.c: Don't delcare protos for getlogin or getlogin_r if we got one from <unistd.h>. File [changed]: glob.c Url: https://ccvs.cvshome.org/source/browse/ccvs/lib/glob.c?r1=1.9&r2=1.10 Delta lines: +7 -2 ------------------- --- glob.c 19 May 2005 22:53:55 -0000 1.9 +++ glob.c 19 May 2005 23:32:14 -0000 1.10 @@ -160,8 +160,9 @@ # define NAME_MAX (sizeof (((struct dirent *) 0)->d_name)) #endif +#include <alloca.h> + #ifdef _LIBC -# include <alloca.h> # undef strdup # define strdup(str) __strdup (str) # define sysconf(id) __sysconf (id) @@ -175,13 +176,17 @@ # endif # define HAVE_STAT64 1 #else /* !_LIBC */ +# ifdef HAVE___POSIX_GETPWNAM_R + /* Solaris. */ +# define getpwnam_r(name, bufp, buf, len, res) \ + __posix_getpwnam_r (name, bufp, buf, len, res) +# endif # include "mempcpy.h" # include "stat-macros.h" # include "strdup.h" #endif /* _LIBC */ #include <stdbool.h> -#include <alloca.h> #include <fnmatch.h> #ifndef HAVE_STAT64