comparison src/auto/configure @ 20311:05b4efb062a7 v8.2.0711

patch 8.2.0711: temp directory might be cleared Commit: https://github.com/vim/vim/commit/b2d0e51366dea6843f991f31a457f5456d162678 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 7 18:37:03 2020 +0200 patch 8.2.0711: temp directory might be cleared Problem: With a long running Vim the temp directory might be cleared on some systems. Solution: Lock the temp directory. (closes #6044)
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 May 2020 18:45:03 +0200
parents 4470e19bc790
children 4411c2b96af9
comparison
equal deleted inserted replaced
20310:fb099a566102 20311:05b4efb062a7
13821 $as_echo "no" >&6; } 13821 $as_echo "no" >&6; }
13822 fi 13822 fi
13823 rm -f core conftest.err conftest.$ac_objext \ 13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext 13824 conftest$ac_exeext conftest.$ac_ext
13825 13825
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
13827 $as_echo_n "checking for dirfd... " >&6; }
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 #include <sys/types.h>
13831 #include <dirent.h>
13832 int
13833 main ()
13834 {
13835 DIR * dir=opendir("dirname"); dirfd(dir);
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 if ac_fn_c_try_compile "$LINENO"; then :
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13842 $as_echo "yes" >&6; }; $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
13843
13844 else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13846 $as_echo "not usable" >&6; }
13847 fi
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
13851 $as_echo_n "checking for flock... " >&6; }
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 #include <sys/file.h>
13855 int
13856 main ()
13857 {
13858 flock(10, LOCK_SH);
13859 ;
13860 return 0;
13861 }
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13865 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
13866
13867 else
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13869 $as_echo "not usable" >&6; }
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13827 $as_echo_n "checking for sysctl... " >&6; } 13874 $as_echo_n "checking for sysctl... " >&6; }
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */ 13876 /* end confdefs.h. */
13830 #include <sys/types.h> 13877 #include <sys/types.h>