]> Savannah Git Hosting - gnulib.git/commitdiff
ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Nov 2020 00:37:02 +0000 (01:37 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 2 Nov 2020 00:37:02 +0000 (01:37 +0100)
* tests/test-ssfmalloc.c: Include <limits.h>.
(PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.

ChangeLog
tests/test-ssfmalloc.c

index db0eb173ae928eb50162dce6d6f6c23c1b9ee636..2068ce6d2477b362dbbb92d3e64106123bec9cf4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-11-01  Bruno Haible  <bruno@clisp.org>
+
+       ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
+       * tests/test-ssfmalloc.c: Include <limits.h>.
+       (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
+
 2020-11-01  Bruno Haible  <bruno@clisp.org>
 
        verify tests: Fix compilation error with MSVC (regression 2020-10-30).
index 9699e6b5ed5cb15c6957b4a1513f6d431bb37810..86fa42bf84f91e5e3f3450b66f1fd399aa32eba7 100644 (file)
@@ -124,9 +124,9 @@ free_pages (uintptr_t pages, size_t size)
 /* ======================= Instantiate the front end ======================= */
 
 #define PAGESIZE pagesize
-/* On Cygwin, PAGESIZE is 65536.  On all other platforms, it is either 4096
-   or 8192.  */
-#ifdef __CYGWIN__
+/* On Cygwin and Linux/PowerPC, PAGESIZE is 65536.  On all other platforms, it
+   is either 4096 or 8192.  */
+#if defined __CYGWIN__ || (defined __linux__ && defined __powerpc__)
 # define PAGESIZE_MAX 65536
 #else
 # define PAGESIZE_MAX 8192
@@ -141,6 +141,8 @@ free_pages (uintptr_t pages, size_t size)
 
 /* ================================= Tests ================================= */
 
+#include <limits.h>
+
 #include "macros.h"
 
 /* Fills a block of a given size with some contents.  */