]> Savannah Git Hosting - gnulib.git/commitdiff
Fix "warning: "getpagesize" redefined".
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 11:00:48 +0000 (13:00 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 11:00:48 +0000 (13:00 +0200)
* tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
macro.

ChangeLog
tests/test-getcwd.c

index edd411444847d3e87807d0a47b49e3d29b950265..56e893b13d23ad804d66c4b11af77630d3a48079 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2020-08-16  Bruno Haible  <bruno@clisp.org>
 
+       Fix "warning: "getpagesize" redefined".
+       * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
+       macro.
+
        Fix "warning: implicitly declaring library function 'strncasecmp'".
        * lib/strptime.c: Include <strings.h>.
 
index e1df1ff30aea746896c402dd7b39a9a0ddf78c07..ab1f5f12981ea61b1ca04c9bb7c00476d7aed920 100644 (file)
@@ -29,7 +29,7 @@
 #include "pathmax.h"
 #include "macros.h"
 
-#if ! HAVE_GETPAGESIZE
+#if !(HAVE_GETPAGESIZE || defined getpagesize)
 # define getpagesize() 0
 #endif