Problem reported by Bruno Haible in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
* lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
+2017-02-12 Paul Eggert <eggert@cs.ucla.edu>
+
+ glob: port better to emscripten
+ Problem reported by Bruno Haible in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
+ * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
+
2017-02-11 Bruno Haible <bruno@clisp.org>
host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
if (success)
{
struct passwd *p;
+ char *malloc_pwtmpbuf = NULL;
+ char *pwtmpbuf;
# if defined HAVE_GETPWNAM_R || defined _LIBC
long int pwbuflenmax = GETPW_R_SIZE_MAX ();
size_t pwbuflen = pwbuflenmax;
- char *pwtmpbuf;
struct passwd pwbuf;
- char *malloc_pwtmpbuf = NULL;
int save = errno;
# ifndef _LIBC
/* Look up specific user's home directory. */
{
struct passwd *p;
+ char *malloc_pwtmpbuf = NULL;
# if defined HAVE_GETPWNAM_R || defined _LIBC
long int buflenmax = GETPW_R_SIZE_MAX ();
size_t buflen = buflenmax;
char *pwtmpbuf;
- char *malloc_pwtmpbuf = NULL;
struct passwd pwbuf;
int save = errno;