From: degomme Date: Mon, 31 Oct 2016 13:34:00 +0000 (+0100) Subject: Test for mremap function and store result in internal_config.h. X-Git-Tag: v3_14~271^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/37af64789389e50cbea3b81a39254226cb53e798 Test for mremap function and store result in internal_config.h. From M. Volat --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 205be0139e..255ba48a21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -330,6 +330,7 @@ CHECK_FUNCTION_EXISTS(sysconf HAVE_SYSCONF) CHECK_FUNCTION_EXISTS(popen HAVE_POPEN) CHECK_FUNCTION_EXISTS(process_vm_readv HAVE_PROCESS_VM_READV) CHECK_FUNCTION_EXISTS(mmap HAVE_MMAP) +CHECK_FUNCTION_EXISTS(mremap HAVE_MREMAP) CHECK_SYMBOL_EXISTS(vasprintf stdio.h HAVE_VASPRINTF) if(MINGW) diff --git a/tools/cmake/src/internal_config.h.in b/tools/cmake/src/internal_config.h.in index 1ad92b1540..c09fdc13cf 100644 --- a/tools/cmake/src/internal_config.h.in +++ b/tools/cmake/src/internal_config.h.in @@ -62,6 +62,7 @@ /* Other function checks */ #define HAVE_BACKTRACE @HAVE_BACKTRACE@ /* Function backtrace */ #define HAVE_MMAP @HAVE_MMAP@ /* Function mmap */ +#define HAVE_MREMAP @HAVE_MREMAP@ /* Function mremap */ #define HAVE_SEM_INIT @HAVE_SEM_INIT@ /* Function sem_init (part of XPG6 standard only) */ #define HAVE_POPEN @HAVE_POPEN@ /* Function popen */ #define HAVE_SYSCONF @HAVE_SYSCONF@ /* Function sysconf */