diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-03-17 22:25:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-03-17 22:25:30 +0000 |
commit | 9201d894910e26e87fbfc0af24d9460797b1890f (patch) | |
tree | 777029282e401e722d33f5fc0528fc02c267979f /gold/gold.h | |
parent | ef4ab7a8185e12b2a2e76982a9fe82c8d0f10a38 (diff) | |
download | gdb-9201d894910e26e87fbfc0af24d9460797b1890f.zip gdb-9201d894910e26e87fbfc0af24d9460797b1890f.tar.gz gdb-9201d894910e26e87fbfc0af24d9460797b1890f.tar.bz2 |
* 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.
Diffstat (limited to 'gold/gold.h')
-rw-r--r-- | gold/gold.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/gold.h b/gold/gold.h index a0cc62d..780561d 100644 --- a/gold/gold.h +++ b/gold/gold.h @@ -121,6 +121,10 @@ struct hash<T*> extern "C" ssize_t pread(int, void*, size_t, off_t); #endif +#ifndef HAVE_FTRUNCATE +extern "C" int ftruncate(int, off_t); +#endif + namespace gold { |