From 1e21adaaf6409ab3e2d33a5e48da282e1926a720 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Mon, 22 Jun 2009 15:26:33 +0200 Subject: Two patches which fix issues on cross compiling/building --- lib/util/time.m4 | 2 +- source4/build/m4/check_cc.m4 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/util/time.m4 b/lib/util/time.m4 index f61ae4cd25..675e20129f 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 55802850b0..32e4b5083d 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 -- cgit