]> Savannah Git Hosting - gnulib.git/commit
getcwd: simplify abort bug checking
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Jun 2024 17:26:30 +0000 (10:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Jun 2024 20:19:02 +0000 (13:19 -0700)
commit17c9d2354a8abf6791da45b125454cfeb39152fc
tree688504e5a19a03c04585125be38d12dc0e55a70d
parentbd7b4abe3631d7ce06a1edb7014a0b027bde8526
getcwd: simplify abort bug checking

* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don’t invoke
gl_CHECK_FUNC_GETPAGESIZE or #define or use HAVE_GETPAGESIZE.
Protect ‘bug_possible’ with ‘defined _SC_PAGESIZE’ instead.
That’s good enough as the buggy platforms all define _SC_PAGESIZE.
* modules/getcwd (Files): Remove m4/getpagesize.m4.
* tests/test-getcwd.c (getpagsize): Remove replacement macro.
(test_abort_bug): Similar fix for ‘bug_possible’.
ChangeLog
m4/getcwd-abort-bug.m4
modules/getcwd
tests/test-getcwd.c