summaryrefslogtreecommitdiff
path: root/m4/ftruncate.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-08-09 22:59:26 +0200
committerBruno Haible <bruno@clisp.org>2020-08-09 22:59:26 +0200
commit444acd314f6c4a1fb7ea7412a54b8ea5fc0ad7c2 (patch)
tree7e9a1f46c8699b65b69facd6f3270d6c8a5fcad4 /m4/ftruncate.m4
parentd371c5765e07730b544c5b560f2abd40fb4e64b8 (diff)
downloadgnulib-444acd314f6c4a1fb7ea7412a54b8ea5fc0ad7c2.tar.gz
ftruncate: Use _chsize, not chsize.
* m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize. * lib/ftruncate.c: Test HAVE__CHSIZE. (chsize_nothrow): Use _chsize, not chsize.
Diffstat (limited to 'm4/ftruncate.m4')
-rw-r--r--m4/ftruncate.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/ftruncate.m4 b/m4/ftruncate.m4
index 041f542b8e..752b0dd4eb 100644
--- a/m4/ftruncate.m4
+++ b/m4/ftruncate.m4
@@ -1,6 +1,6 @@
-# serial 20
+# serial 21
-# See if we need to emulate a missing ftruncate function using chsize.
+# See if we need to emulate a missing ftruncate function using _chsize.
# Copyright (C) 2000-2001, 2003-2007, 2009-2020 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
@@ -36,5 +36,5 @@ AC_DEFUN([gl_FUNC_FTRUNCATE],
# Prerequisites of lib/ftruncate.c.
AC_DEFUN([gl_PREREQ_FTRUNCATE],
[
- AC_CHECK_FUNCS([chsize])
+ AC_CHECK_FUNCS([_chsize])
])