Hopefully more portable errno check.

This commit is contained in:
Alexandre Julliard 2002-07-01 18:39:26 +00:00
parent 5b80ce3517
commit 770c33f68e
2 changed files with 6 additions and 12 deletions

3
aclocal.m4 vendored
View File

@ -65,9 +65,8 @@ dnl
AC_DEFUN([WINE_CHECK_ERRNO],
[AC_CACHE_CHECK([for reentrant libc: $1],[wine_cv_libc_r_$1],
[AC_TRY_RUN([int myerrno = 0;
char buf[256];
int *$1(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}],
main(){close(333); close(333); exit(!myerrno);}],
wine_cv_libc_r_$1=yes, wine_cv_libc_r_$1=no,
wine_cv_libc_r_$1=yes)])
AS_IF([test "$wine_cv_libc_r_$1" = "yes"],[$2],[$3])])

15
configure vendored
View File

@ -10542,9 +10542,8 @@ else
#line $LINENO "configure"
#include "confdefs.h"
int myerrno = 0;
char buf[256];
int *__errno_location(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
main(){close(333); close(333); exit(!myerrno);}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
@ -10585,9 +10584,8 @@ else
#line $LINENO "configure"
#include "confdefs.h"
int myerrno = 0;
char buf256;
int *__error(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
main(){close(333); close(333); exit(!myerrno);}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
@ -10628,9 +10626,8 @@ else
#line $LINENO "configure"
#include "confdefs.h"
int myerrno = 0;
char buf256;
int *___errno(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
main(){close(333); close(333); exit(!myerrno);}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
@ -10671,9 +10668,8 @@ else
#line $LINENO "configure"
#include "confdefs.h"
int myerrno = 0;
char buf256;
int *__thr_errno(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
main(){close(333); close(333); exit(!myerrno);}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
@ -10714,9 +10710,8 @@ else
#line $LINENO "configure"
#include "confdefs.h"
int myerrno = 0;
char buf256;
int *__errno(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
main(){close(333); close(333); exit(!myerrno);}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5