From 33aa0cbb6b98b9b52070d0cdbf6462dfdd7070ec Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Fri, 29 Apr 2005 14:48:03 +0000 Subject: 2005-04-29 Paul Brook * common/callback.c (PIPE_BUF): Provide default refinition. (os_lstat): Use stat if lstat is not available on the host. (os_ftruncate): Return EINVAL if not available on the host. (os_truncate): Ditto. * common/configure.ac: Check for lstat, truncate and ftruncate. * common/configure: Regenerate. * common/config.in: Regenerate. --- sim/common/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/common/configure.ac') diff --git a/sim/common/configure.ac b/sim/common/configure.ac index 834ef51..5516d9e 100644 --- a/sim/common/configure.ac +++ b/sim/common/configure.ac @@ -37,7 +37,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) +AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate) SIM_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], -- cgit v1.1