The attached patch allows building the gdb simulators on windows hosts. These do not provide the lstat(2) or ftruncate(2) functions. truncate(2) is not implemented in older mingw releases. Windows doesn't have symbolic links, so we use stat in place of lstat. For the missing truncate functions we just fail. Applied to csl-arm-20050325-branch. Ok for mainline? Paul 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.