aosp12/external/ltp/m4/ltp-madvise.m4

12 lines
379 B
Plaintext
Raw Normal View History

2023-01-09 17:11:35 +08:00
dnl SPDX-License-Identifier: GPL-2.0-or-later
dnl Copyright (c) Linux Test Project, 2011
dnl Author: Cyril Hrubis <chrubis@suse.cz>
AC_DEFUN([LTP_CHECK_MADVISE],
[
AC_CHECK_DECLS([MADV_MERGEABLE],[have_madv_mergeable="yes"],,[#include <sys/mman.h>])
if test "x$have_madv_mergeable" = "xyes"; then
AC_DEFINE(HAVE_MADV_MERGEABLE,1,[Define to 1 if you have MADV_MERGEABLE])
fi
])