From 9201d894910e26e87fbfc0af24d9460797b1890f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 17 Mar 2009 22:25:30 +0000 Subject: * configure.ac: Check for chsize and posix_fallocate. Replace ftruncate. * ftruncate.c: New file, from gnulib. * output.cc (posix_fallocate): Define dummy version if not HAVE_POSIX_FALLOCATE. (Output_file::map): Call posix_fallocate rather than lseek and write. * gold.h (ftruncate): Declare if not HAVE_FTRUNCATE. * configure, Makefile.in, config.in: Rebuild. --- gold/config.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gold/config.in') diff --git a/gold/config.in b/gold/config.in index 01aac90..c9e994b 100644 --- a/gold/config.in +++ b/gold/config.in @@ -22,12 +22,18 @@ /* Define to 1 if you have the header file. */ #undef HAVE_BYTESWAP_H +/* Define to 1 if you have the `chsize' function. */ +#undef HAVE_CHSIZE + /* Define to 1 if you have the header file. */ #undef HAVE_EXT_HASH_MAP /* Define to 1 if you have the header file. */ #undef HAVE_EXT_HASH_SET +/* Define to 1 if you have the `ftruncate' function. */ +#undef HAVE_FTRUNCATE + /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H @@ -40,6 +46,9 @@ /* Define if compiler supports #pragma omp threadprivate */ #undef HAVE_OMP_SUPPORT +/* Define to 1 if you have the `posix_fallocate' function. */ +#undef HAVE_POSIX_FALLOCATE + /* Define to 1 if you have the `pread' function. */ #undef HAVE_PREAD -- cgit v1.1