diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-07 16:28:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-07 16:28:52 +0000 |
commit | a13852d93636405b7b3cf87f10521e52bcaafe48 (patch) | |
tree | d5c0de9bee6ecf11dd72636d479d8f5d066781bf /sim/common/configure.ac | |
parent | 481d79819e0e47f23f20408a6595333012da6f58 (diff) | |
download | binutils-a13852d93636405b7b3cf87f10521e52bcaafe48.zip binutils-a13852d93636405b7b3cf87f10521e52bcaafe48.tar.gz binutils-a13852d93636405b7b3cf87f10521e52bcaafe48.tar.bz2 |
sim: dv-cfi: check for posix_fallocate
Some systems (like OS X) do not have posix_fallocate. Add a configure
check for it before we try to use it. This is less work than trying
to support old systems.
URL: http://sourceware.org/bugzilla/show_bug.cgi?id=13161
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/configure.ac')
-rw-r--r-- | sim/common/configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/configure.ac b/sim/common/configure.ac index a683f37..e771575 100644 --- a/sim/common/configure.ac +++ b/sim/common/configure.ac @@ -34,7 +34,7 @@ AC_SUBST(TARGET_SUBDIR) # These aren't all needed yet, but will be eventually. AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h) -AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate) +AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate posix_fallocate) AC_CHECK_MEMBERS([[struct stat.st_dev], [struct stat.st_ino], [struct stat.st_mode], [struct stat.st_nlink], [struct stat.st_uid], [struct stat.st_gid], [struct stat.st_rdev], [struct stat.st_size], |