From 5143dcb166f7e75d1e978ea152bb88a54cb77b27 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Thu, 28 Sep 2000 13:11:23 +0000 Subject: [PATCH] Adjusted the test for an unimplemented getpwuid_r. Info from Michael 2000-09-28 Sebastian Wilhelmi * configure.in: Adjusted the test for an unimplemented getpwuid_r. Info from Michael Pruett. This is just a forward merge from glib-1-2. --- ChangeLog | 4 ++++ ChangeLog.pre-2-0 | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-12 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ configure.in | 5 +++-- 9 files changed, 35 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 582553d..8931f5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 582553d..8931f5c 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 582553d..8931f5c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 582553d..8931f5c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 582553d..8931f5c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 582553d..8931f5c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 582553d..8931f5c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 582553d..8931f5c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2000-09-28 Sebastian Wilhelmi + * configure.in: Adjusted the test for an unimplemented + getpwuid_r. Info from Michael Pruett. This is just a forward + merge from glib-1-2. + * configure.in: Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for UnixWare systems and set the right cflags and libs there (it needs -Kthread for the native compiler and diff --git a/configure.in b/configure.in index 5206b0e..b85d7b7 100644 --- a/configure.in +++ b/configure.in @@ -971,10 +971,11 @@ if test x"$have_threads" != xnone; then int main () { char buffer[10000], *pointer; char getpwuid_r (long, void*, void*, int, void*); + int error; errno = 0; - getpwuid_r (0, &buffer, &buffer, + error = getpwuid_r (0, &buffer, &buffer, sizeof (buffer), &pointer); - return errno == ENOSYS;}], + return errno == ENOSYS || error == ENOSYS;}], [ac_cv_func_getpwuid_r=yes], [ac_cv_func_getpwuid_r=no])]) if test "$ac_cv_func_getpwuid_r" = yes; then -- 2.7.4