]> Savannah Git Hosting - gnulib.git/commit
truncate: Fix compilation error on Android.
authorBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 23:48:22 +0000 (01:48 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 23:48:22 +0000 (01:48 +0200)
commita0f15cb056e4a7700acea432d217d5b2b4a50c7d
tree2abc7f4e8f1e66c8d87996362a3ed622c3cded30
parentd1c1f3aea9e962382b52d9ec38d28da6b60a2e8f
truncate: Fix compilation error on Android.

* m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
* lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
HAVE_TRUNCATE.
* modules/truncate: Likewise.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
not HAVE_TRUNCATE.
* modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
HAVE_TRUNCATE.
* doc/posix-functions/truncate.texi: Mention the issue.
ChangeLog
doc/posix-functions/truncate.texi
lib/unistd.in.h
m4/truncate.m4
m4/unistd_h.m4
modules/truncate
modules/unistd