diff options
Diffstat (limited to 'gnulib/m4/ftruncate.m4')
m--------- | gnulib | 0 | ||||
-rw-r--r-- | gnulib/m4/ftruncate.m4 | 24 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gnulib b/gnulib deleted file mode 160000 -Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1 diff --git a/gnulib/m4/ftruncate.m4 b/gnulib/m4/ftruncate.m4 new file mode 100644 index 0000000..4a47ba4 --- /dev/null +++ b/gnulib/m4/ftruncate.m4 @@ -0,0 +1,24 @@ +# serial 18 + +# See if we need to emulate a missing ftruncate function using chsize. + +# Copyright (C) 2000-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_FTRUNCATE], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([ftruncate]) + if test $ac_cv_func_ftruncate = no; then + HAVE_FTRUNCATE=0 + fi +]) + +# Prerequisites of lib/ftruncate.c. +AC_DEFUN([gl_PREREQ_FTRUNCATE], +[ + AC_REQUIRE([AC_C_INLINE]) + AC_CHECK_FUNCS([chsize]) +]) |