Fixed crypt problems on IRIX with prototype.
authorJeremy Allison <jra@samba.org>
Thu, 15 Oct 1998 19:30:12 +0000 (19:30 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 15 Oct 1998 19:30:12 +0000 (19:30 +0000)
Jeremy.
(This used to be commit bdba1bcf2094d2b33dd74d3cfde61723dd7fc46b)

source3/configure
source3/configure.in

index 55c6563e3b785645d4646d1ac3d17e99ddaa782c..ec53735fbfa4adc779d4a4c0fd43b9e6bf3465c7 100755 (executable)
@@ -2891,7 +2891,7 @@ else
 #include "confdefs.h"
 #include <unistd.h>
 int main() {
-int i = setresuid
+int i = (int)setresuid
 ; return 0; }
 EOF
 if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@@ -2926,7 +2926,7 @@ else
 #include "confdefs.h"
 #include <unistd.h>
 int main() {
-int i = crypt
+int i = (int)crypt
 ; return 0; }
 EOF
 if { (eval echo configure:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
index dc036c6238ad369e284e7268d7e6ae23f5691c7e..155c03ec08a0488d0684d8a7e65095cb4f02bf5d 100644 (file)
@@ -117,7 +117,7 @@ fi
 
 # stupid glibc has the functions but no declaration. grrrr.
 AC_CACHE_CHECK([for setresuid declaration],samba_cv_have_setresuid_decl,[
-    AC_TRY_COMPILE([#include <unistd.h>],[int i = setresuid],
+    AC_TRY_COMPILE([#include <unistd.h>],[int i = (int)setresuid],
         samba_cv_have_setresuid_decl=yes,samba_cv_have_setresuid_decl=no)])
 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
     AC_DEFINE(HAVE_SETRESUID_DECL)
@@ -125,7 +125,7 @@ fi
 
 # stupid glibc has the functions but no declaration. grrrr.
 AC_CACHE_CHECK([for crypt declaration],samba_cv_have_crypt_decl,[
-    AC_TRY_COMPILE([#include <unistd.h>],[int i = crypt],
+    AC_TRY_COMPILE([#include <unistd.h>],[int i = (int)crypt],
         samba_cv_have_crypt_decl=yes,samba_cv_have_crypt_decl=no)])
 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
     AC_DEFINE(HAVE_CRYPT_DECL)