1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fixed crypt problems on IRIX with prototype.

Jeremy.
(This used to be commit bdba1bcf20)
This commit is contained in:
Jeremy Allison 1998-10-15 19:30:12 +00:00
parent a42afcdcc7
commit 1cf3444105
2 changed files with 4 additions and 4 deletions

4
source3/configure vendored
View File

@ -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

View 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)