coreutils/m4/ftruncate.m4

15 lines
318 B
Plaintext
Raw Normal View History

#serial 4
2000-01-23 18:34:04 +08:00
# See if we need to emulate a missing ftruncate function using fcntl or chsize.
2000-01-23 18:34:04 +08:00
AC_DEFUN([jm_FUNC_FTRUNCATE],
2000-01-23 18:34:04 +08:00
[
AC_CHECK_FUNCS(ftruncate, , [ftruncate_missing=yes])
if test "$ftruncate_missing" = yes; then
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_FUNCS([chsize])
AC_LIBOBJ(ftruncate)
2000-01-23 18:34:04 +08:00
fi
])