* 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

@ -30,8 +30,10 @@
#include <sys/types.h>
#include <unistd.h>
extern ssize_t pread (int, void *, size_t, off_t);
ssize_t
pread(int fd, void* buf, size_t count, off_t offset)
pread (int fd, void *buf, size_t count, off_t offset)
{
if (lseek(fd, offset, SEEK_SET) != offset)
return -1;