-#serial 8
-# Check for several getcwd bugs with long paths.
+#serial 10
+# Check for several getcwd bugs with long file names.
# If so, arrange to compile the wrapper function.
# This is necessary for at least GNU libc on linux-2.4.19 and 2.4.20.
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,
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
-#if HAVE_FCNTL_H
-# include <fcntl.h>
-#endif
+#include <fcntl.h>
#ifndef AT_FDCWD
# define AT_FDCWD 0