3 # See if we need to emulate a missing ftruncate function using fcntl or chsize.
5 AC_DEFUN([gl_FUNC_FTRUNCATE],
7 AC_REPLACE_FUNCS(ftruncate)
8 if test $ac_cv_func_ftruncate = no; then
13 # Prerequisites of lib/ftruncate.c.
14 AC_DEFUN([gl_PREREQ_FTRUNCATE],
16 AC_CHECK_HEADERS_ONCE(unistd.h)
17 AC_CHECK_FUNCS(chsize)