>From 4b52185214e9bd28026df2e1694191f2f8abe3f1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Oct 2020 18:16:10 +0100 Subject: [PATCH 4/5] ssfmalloc tests: Portability to Minix. * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4. (configure.ac): Invoke gl_FUNC_MMAP_ANON. * m4/mmap-anon.m4: Update comment. --- ChangeLog | 5 +++++ m4/mmap-anon.m4 | 4 ++-- modules/ssfmalloc-tests | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 32b5e0e..26ba40c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2020-10-25 Bruno Haible + ssfmalloc tests: Portability to Minix. + * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4. + (configure.ac): Invoke gl_FUNC_MMAP_ANON. + * m4/mmap-anon.m4: Update comment. + ssfmalloc: Portability to AIX. * modules/ssfmalloc (Include): Add ssfmalloc.h. (Link): New section. diff --git a/m4/mmap-anon.m4 b/m4/mmap-anon.m4 index d5c69df..2995ad5 100644 --- a/m4/mmap-anon.m4 +++ b/m4/mmap-anon.m4 @@ -1,4 +1,4 @@ -# mmap-anon.m4 serial 10 +# mmap-anon.m4 serial 11 dnl Copyright (C) 2005, 2007, 2009-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,7 +9,7 @@ dnl with or without modifications, as long as this notice is preserved. # - On Linux, AIX, OSF/1, Solaris, Cygwin, Interix, Haiku, both MAP_ANONYMOUS # and MAP_ANON exist and have the same value. # - On HP-UX, only MAP_ANONYMOUS exists. -# - On Mac OS X, FreeBSD, NetBSD, OpenBSD, only MAP_ANON exists. +# - On Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, only MAP_ANON exists. # - On IRIX, neither exists, and a file descriptor opened to /dev/zero must be # used. diff --git a/modules/ssfmalloc-tests b/modules/ssfmalloc-tests index c1994f1..5e35fe4 100644 --- a/modules/ssfmalloc-tests +++ b/modules/ssfmalloc-tests @@ -1,10 +1,12 @@ Files: tests/test-ssfmalloc.c tests/macros.h +m4/mmap-anon.m4 Depends-on: configure.ac: +gl_FUNC_MMAP_ANON Makefile.am: TESTS += test-ssfmalloc -- 2.7.4