From: Nathaniel McCallum Date: Mon, 22 Jun 2009 13:26:33 +0000 (+0200) Subject: Two patches which fix issues on cross compiling/building X-Git-Tag: tevent-0-9-8~903 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=1e21adaaf6409ab3e2d33a5e48da282e1926a720;p=amitay%2Fsamba.git Two patches which fix issues on cross compiling/building --- diff --git a/lib/util/time.m4 b/lib/util/time.m4 index f61ae4cd25c..675e20129fc 100644 --- a/lib/util/time.m4 +++ b/lib/util/time.m4 @@ -3,7 +3,7 @@ AC_TRY_RUN([ #include #include main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}], - samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)]) + samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=yes)]) if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available]) fi diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index 55802850b09..32e4b5083dd 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -45,7 +45,9 @@ AC_CACHE_CHECK([that the C compiler understands negative enum values],samba_cv_C return 0; } ], - samba_cv_CC_NEGATIVE_ENUM_VALUES=yes,samba_cv_CC_NEGATIVE_ENUM_VALUES=no)]) + samba_cv_CC_NEGATIVE_ENUM_VALUES=yes, + samba_cv_CC_NEGATIVE_ENUM_VALUES=no, + samba_cv_CC_NEGATIVE_ENUM_VALUES=yes)]) if test x"$samba_cv_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then AC_DEFINE(USE_UINT_ENUMS, 1, [Whether the compiler has uint enum support]) fi