HP-UX 10 xshares the same non-posix getpwuid_r signature as AIX. (#100756,

Sat Dec 14 21:24:04 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gutils.c (g_get_any_init): HP-UX 10 xshares the
        same non-posix getpwuid_r signature as AIX.
        (#100756, Kai Poitschke)
This commit is contained in:
Owen Taylor
2002-12-15 02:35:28 +00:00
committed by Owen Taylor
parent 424b7e92fc
commit 2c4878f63e
8 changed files with 44 additions and 1 deletions

View File

@@ -782,7 +782,8 @@ g_get_any_init (void)
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
error = error < 0 ? errno : error;
# else /* HAVE_NONPOSIX_GETPWUID_R */
# ifdef _AIX
/* HPUX 11 falls into the HAVE_POSIX_GETPWUID_R case */
# if defined(_AIX) || defined(__hpux)
error = getpwuid_r (getuid (), &pwd, buffer, bufsize);
pw = error == 0 ? &pwd : NULL;
# else /* !_AIX */