mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-05 10:38:54 +01:00
Make the test for getpwuid_r work on newer AIX versions, too. Still works
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * Make the test for getpwuid_r work on newer AIX versions, too. Still works on Solaris and Linux. Patch from Craig Rodrigues <rodrigc@mediaone.net>.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
9838e5e84f
commit
0735756eaa
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
1999-11-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* Make the test for getpwuid_r work on newer AIX versions,
|
||||||
|
too. Still works on Solaris and Linux. Patch from Craig Rodrigues
|
||||||
|
<rodrigc@mediaone.net>.
|
||||||
|
|
||||||
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
Tue Nov 2 17:21:29 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
* glib.h (G_DIR_SEPARATOR): Add defines for EMX/OS2.
|
||||||
|
|||||||
18
configure.in
18
configure.in
@@ -795,15 +795,15 @@ if test x"$have_threads" != xnone; then
|
|||||||
fi
|
fi
|
||||||
if test "$ac_cv_func_getpwuid_r" = "yes"; then
|
if test "$ac_cv_func_getpwuid_r" = "yes"; then
|
||||||
AC_MSG_CHECKING(whether getpwuid_r is posix like)
|
AC_MSG_CHECKING(whether getpwuid_r is posix like)
|
||||||
# getpwuid_r(0, NULL, NULL, 0) is the signature on
|
# The signature for the POSIX version is:
|
||||||
# solaris, if that is not found, the prog below won't
|
# int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
|
||||||
# compile, then the posix signature is assumed as
|
AC_TRY_COMPILE([#include <pwd.h>
|
||||||
# the default.
|
#include <sys/types.h>
|
||||||
AC_TRY_COMPILE([#include <pwd.h>],
|
#include <stdlib.h>],
|
||||||
[getpwuid_r(0, NULL, NULL, 0);],
|
[getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);],
|
||||||
[AC_MSG_RESULT(no)],
|
[AC_DEFINE(HAVE_GETPWUID_R_POSIX)
|
||||||
[AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)],
|
||||||
AC_DEFINE(HAVE_GETPWUID_R_POSIX)])
|
[AC_MSG_RESULT(no)])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test x"$have_threads" = xposix; then
|
if test x"$have_threads" = xposix; then
|
||||||
|
|||||||
Reference in New Issue
Block a user