Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Test for mremap function and store result in internal_config.h.
authordegomme <augustin.degomme@unibas.ch>
Mon, 31 Oct 2016 13:34:00 +0000 (14:34 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Mon, 31 Oct 2016 13:34:00 +0000 (14:34 +0100)
From M. Volat

CMakeLists.txt
tools/cmake/src/internal_config.h.in

index 205be01..255ba48 100644 (file)
@@ -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)
index 1ad92b1..c09fdc1 100644 (file)
@@ -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 */