From: Jelmer Vernooij Date: Wed, 19 Oct 2005 14:35:25 +0000 (+0000) Subject: r11184: Remove test that checks whether ftruncate() needs root, because I can't X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=fbd34a19abefa5e2d317599483611ff80dff73c0;p=kai%2Fsamba.git r11184: Remove test that checks whether ftruncate() needs root, because I can't find the file it tries to use (build/tests/ftruncroot.c) and the value it defines is not used anywhere. (This used to be commit 97bbf4a46035becaee50d242364146e3529cf631) --- diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4 index 57ccd9f6ed0..bd643faa53e 100644 --- a/source4/build/m4/rewrite.m4 +++ b/source4/build/m4/rewrite.m4 @@ -448,13 +448,6 @@ if test x"$samba_cv_HAVE_MMAP" = x"yes"; then AC_DEFINE(HAVE_MMAP,1,[Whether mmap works]) fi -AC_CACHE_CHECK([for ftruncate needs root],samba_cv_FTRUNCATE_NEEDS_ROOT,[ -AC_TRY_RUN([#include "${srcdir-.}/build/tests/ftruncroot.c"], - samba_cv_FTRUNCATE_NEEDS_ROOT=yes,samba_cv_FTRUNCATE_NEEDS_ROOT=no,samba_cv_FTRUNCATE_NEEDS_ROOT=cross)]) -if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then - AC_DEFINE(FTRUNCATE_NEEDS_ROOT,1,[Whether ftruncate() needs root]) -fi - AC_CACHE_CHECK([for st_blocks in struct stat],samba_cv_HAVE_STAT_ST_BLOCKS,[ AC_TRY_COMPILE([#include #include