1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2026-10-24 00:48:56 +03:00
Files
gnulib/m4/pagealign_alloc.m4
2026-01-01 10:37:05 -08:00

24 lines
740 B
Plaintext

# pagealign_alloc.m4
# serial 7
dnl Copyright (C) 2005-2007, 2009-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
AC_DEFUN([gl_PAGEALIGN_ALLOC],
[
dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS.
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
gl_PREREQ_PAGEALIGN_ALLOC
])
# Prerequisites of lib/pagealign_alloc.c.
AC_DEFUN([gl_PREREQ_PAGEALIGN_ALLOC],
[
AC_REQUIRE([gl_FUNC_MMAP_ANON])
gl_CHECK_FUNCS_ANDROID([posix_memalign], [[#include <stdlib.h>]])
AC_CHECK_HEADERS_ONCE([unistd.h])
])