Mercurial > vim
diff src/configure.in @ 2003:5d5cad78a838 v7.2.300
updated for version 7.2-300
author | vimboss |
---|---|
date | Tue, 17 Nov 2009 16:13:15 +0000 |
parents | 1f53050b3868 |
children | c58b9479e304 |
line wrap: on
line diff
--- a/src/configure.in +++ b/src/configure.in @@ -2855,6 +2855,16 @@ else AC_MSG_RESULT(yes) fi +dnl make sure the FD_CLOEXEC flag for fcntl()'s F_SETFD command is known +AC_MSG_CHECKING(for FD_CLOEXEC) +AC_TRY_COMPILE( +[#if HAVE_FCNTL_H +# include <fcntl.h> +#endif], +[ int flag = FD_CLOEXEC;], + AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FD_CLOEXEC), + AC_MSG_RESULT(not usable)) + dnl rename needs to be checked separately to work on Nextstep with cc AC_MSG_CHECKING(for rename) AC_TRY_LINK([#include <stdio.h>], [rename("this", "that")],