Patch for configure.in in glib
- From: Craig Rodrigues <rodrigc mediaone net>
- To: gtk-devel-list redhat com
- Cc: Valdis Kletnieks vt edu
- Subject: Patch for configure.in in glib
- Date: Sun, 7 Nov 1999 14:39:22 -0500
Hi,
This patch cleans up the test for POSIX getpwuid_r().
Under AIX, the test wasn't executing properly, so the
wrong version of getpwuid_r() was being used, and the glib
library would coredump.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net
*** configure.in.old Thu Oct 7 17:27:43 1999
--- configure.in Sun Nov 7 19:34:36 1999
***************
*** 795,809 ****
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 <pwd.h>],
! [getpwuid_r(0, NULL, NULL, 0);],
! [AC_MSG_RESULT(no)],
! [AC_MSG_RESULT(yes)
! AC_DEFINE(HAVE_GETPWUID_R_POSIX)])
fi
fi
if test x"$have_threads" = xposix; then
--- 795,809 ----
fi
if test "$ac_cv_func_getpwuid_r" = "yes"; then
AC_MSG_CHECKING(whether getpwuid_r is posix like)
! # The signature for the POSIX version is:
! # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
! AC_TRY_COMPILE([#include <pwd.h>
! #include <sys/types.h>
! #include <stdlib.h>],
! [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
if test x"$have_threads" = xposix; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]