• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl SPDX-License-Identifier: GPL-2.0-or-later
2dnl Copyright (c) Linux Test Project, 2012
3dnl Author: Cyril Hrubis <chrubis@suse.cz>
4
5AC_DEFUN([LTP_CHECK_MREMAP_FIXED],[
6AH_TEMPLATE(HAVE_MREMAP_FIXED,
7[Define to 1 if you have MREMAP_FIXED in <sys/mman.h>.])
8AC_MSG_CHECKING([for MREMAP_FIXED in <sys/mman.h>])
9AC_TRY_COMPILE([#define _GNU_SOURCE
10                #include <sys/mman.h>], [int flags = MREMAP_FIXED;],
11               AC_DEFINE(HAVE_MREMAP_FIXED) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
12])
13