Adjusted the test for an unimplemented getpwuid_r. Info from Michael
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Thu, 28 Sep 2000 13:11:23 +0000 (13:11 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Thu, 28 Sep 2000 13:11:23 +0000 (13:11 +0000)
2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* 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
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 582553d..8931f5c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 582553d..8931f5c 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 582553d..8931f5c 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 582553d..8931f5c 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 582553d..8931f5c 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 582553d..8931f5c 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 582553d..8931f5c 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 582553d..8931f5c 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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
index 5206b0e..b85d7b7 100644 (file)
@@ -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