File: linux_mremap.m4

package info (click to toggle)
dovecot 1%3A2.3.21.1%2Bdfsg1-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 58,708 kB
  • sloc: ansic: 562,646; makefile: 7,865; sh: 5,927; cpp: 1,557; perl: 306; python: 255; yacc: 153; xml: 151; lex: 139; pascal: 27
file content (19 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl * Linux compatible mremap()
AC_DEFUN([DOVECOT_LINUX_MREMAP], [
  AC_CACHE_CHECK([Linux compatible mremap()],i_cv_have_linux_mremap,[
    AC_TRY_LINK([
      #include <unistd.h>
      #define __USE_GNU
      #include <sys/mman.h>
    ], [
      mremap(0, 0, 0, MREMAP_MAYMOVE);
    ], [
      i_cv_have_linux_mremap=yes
    ], [
      i_cv_have_linux_mremap=no
    ])
  ])
  if test $i_cv_have_linux_mremap = yes; then
    AC_DEFINE(HAVE_LINUX_MREMAP,, [Define if you have Linux-compatible mremap()])
  fi
])