From 6d441ca5af3ef4211ada7b1f38f8c7e0955b381f Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Mon, 8 Nov 1999 10:02:17 +0000 Subject: [PATCH] Make the test for getpwuid_r work on newer AIX versions, too. Still works 1999-11-08 Sebastian Wilhelmi * configure.in: Make the test for getpwuid_r work on newer AIX versions, too. Still works on Solaris and Linux. Patch from Craig Rodrigues . --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ configure.in | 18 +++++++++--------- 9 files changed, 57 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 167e9694..04e6307a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 167e9694..04e6307a 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 167e9694..04e6307a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 167e9694..04e6307a 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 167e9694..04e6307a 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 167e9694..04e6307a 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 167e9694..04e6307a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 167e9694..04e6307a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +1999-11-08 Sebastian Wilhelmi + + * configure.in: Make the test for getpwuid_r work on newer AIX + versions, too. Still works on Solaris and Linux. Patch from Craig + Rodrigues . + 1999-11-08 Tor Lillqvist * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE diff --git a/configure.in b/configure.in index 7b7a77b3..885b1530 100644 --- a/configure.in +++ b/configure.in @@ -861,15 +861,15 @@ if test x"$enable_threads" = xyes; then fi if test "$ac_cv_func_getpwuid_r" = "yes"; then AC_MSG_CHECKING(whether getpwuid_r is posix like) - # getpwuid_r(0, NULL, NULL, 0) is the signature on - # solaris, if that is not found, the prog below won't - # compile, then the posix signature is assumed as - # the default. - AC_TRY_COMPILE([#include ], - [getpwuid_r(0, NULL, NULL, 0);], - [AC_MSG_RESULT(no)], - [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_GETPWUID_R_POSIX)]) + # The signature for the POSIX version is: + # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **) + AC_TRY_COMPILE([#include + #include + #include ], + [getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);], + [AC_DEFINE(HAVE_GETPWUID_R_POSIX) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)]) fi fi LIBS="$LIBS $G_THREAD_LIBS" -- 2.34.1