* ffsll.c: New file.

* configure.ac: Call AC_REPLACE_FUNCS on ffsll.
	* gold.h (ffsll): Declare if HAVE_FFSLL is not defined.
	* ftruncate.c (ftruncate): Declare before definition.
	* mremap.c (mremap): Likewise.
	* pread.c (pread): Likewise.
	* configure, Makefile.in, config.in: Rebuild.
This commit is contained in:
Ian Lance Taylor
2009-03-28 05:22:30 +00:00
parent 1b31f75d63
commit fd03461a93
10 changed files with 72 additions and 5 deletions

View File

@@ -312,7 +312,7 @@ LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
AC_SUBST(LFS_CFLAGS)
AC_CHECK_FUNCS(chsize)
AC_REPLACE_FUNCS(pread ftruncate mremap)
AC_REPLACE_FUNCS(pread ftruncate mremap ffsll)
# Link in zlib if we can. This allows us to write compressed sections.
AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])