Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
authorMartin Quinson <mquinson@debian.org>
Wed, 20 Apr 2011 16:47:29 +0000 (18:47 +0200)
committerMartin Quinson <mquinson@debian.org>
Wed, 20 Apr 2011 16:47:29 +0000 (18:47 +0200)
buildtools/Cmake/CompleteInFiles.cmake

index f4e7d3b..842a2c6 100644 (file)
@@ -83,10 +83,10 @@ CHECK_FUNCTION_EXISTS(vasprintf HAVE_VASPRINTF)
 CHECK_FUNCTION_EXISTS(makecontext HAVE_MAKECONTEXT)
 CHECK_FUNCTION_EXISTS(mmap HAVE_MMAP)
 
-# Our usage of mmap is Linux-specific (flag MAP_ANONYMOUS)
-IF(NOT "${CMAKE_SYSTEM}" MATCHES "Linux")
+# Our usage of mmap is Linux-specific (flag MAP_ANONYMOUS), but kFreeBSD uses a GNU libc
+IF(NOT "${CMAKE_SYSTEM}" MATCHES "Linux" AND NOT "${CMAKE_SYSTEM}" MATCHES "kFreeBSD")
   SET(HAVE_MMAP 0)
-ENDIF(NOT "${CMAKE_SYSTEM}" MATCHES "Linux")
+ENDIF(NOT "${CMAKE_SYSTEM}" MATCHES "Linux" AND NOT "${CMAKE_SYSTEM}" MATCHES "kFreeBSD")
 
 if(WIN32) #THOSE FILES ARE FUNCTIONS ARE NOT DETECTED BUT THEY SHOULD...
     set(HAVE_UCONTEXT_H 1)