From: Jim Meyering Date: Fri, 1 Jul 2005 20:57:34 +0000 (+0000) Subject: Assume HAVE_FCNTL_H (i.e., include unconditionally, X-Git-Tag: CPPI-1_12~417 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=860691ec4106eb355c761fc0d3eb3ce866762f10;p=thirdparty%2Fcoreutils.git Assume HAVE_FCNTL_H (i.e., include unconditionally, and don't check for fcntl.h). --- diff --git a/m4/getcwd-path-max.m4 b/m4/getcwd-path-max.m4 index 74570dfffa..5a6c43a44f 100644 --- a/m4/getcwd-path-max.m4 +++ b/m4/getcwd-path-max.m4 @@ -1,4 +1,4 @@ -#serial 9 +#serial 10 # Check for several getcwd bugs with long file names. # If so, arrange to compile the wrapper function. @@ -16,7 +16,6 @@ AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX], [ AC_CHECK_DECLS_ONCE(getcwd) - AC_CHECK_HEADERS_ONCE(fcntl.h) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CACHE_CHECK([whether getcwd handles long file names properly], gl_cv_func_getcwd_path_max, @@ -32,9 +31,7 @@ AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX], #include #include #include -#if HAVE_FCNTL_H -# include -#endif +#include #ifndef AT_FDCWD # define AT_FDCWD 0