* some fixups in the solaris detection.
authorWilfried Göesgens <willi@citadel.org>
Tue, 27 Feb 2007 20:06:12 +0000 (20:06 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 27 Feb 2007 20:06:12 +0000 (20:06 +0000)
citadel/configure.ac

index 7e76d37e65611df73b10eeb8b9e3e603081477dd..2b5089e39d92d9bdf39a05029ffcacc9eff9cf07 100644 (file)
@@ -610,8 +610,9 @@ if test $ac_cv_struct_ut_type = yes; then
 fi
 
 AC_CACHE_CHECK([for call semantics from getpwuid_r], ac_cv_call_getpwuid_r,
-[AC_TRY_COMPILE([#include <pwd.h>], [
-  struct passwd pw, *pwp = NULL;
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <pwd.h>], [
+  struct passwd pw, *pwp;
   char pwbuf[64];
   uid_t uid;