diff options
Diffstat (limited to 'm4/ftruncate.m4')
-rw-r--r-- | m4/ftruncate.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ftruncate.m4 b/m4/ftruncate.m4 index 74c347598d..f48126e856 100644 --- a/m4/ftruncate.m4 +++ b/m4/ftruncate.m4 @@ -1,4 +1,4 @@ -# serial 21 +# serial 22 # See if we need to emulate a missing ftruncate function using _chsize. @@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_FTRUNCATE], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) - AC_CHECK_FUNCS_ONCE([ftruncate]) + gl_CHECK_FUNCS_ANDROID([ftruncate], [[#include <unistd.h>]]) if test $ac_cv_func_ftruncate = yes; then m4_ifdef([gl_LARGEFILE], [ AC_REQUIRE([AC_CANONICAL_HOST]) |