Fix ZM_NO_MMAP cmake option
This commit is contained in:
parent
6b11db11ca
commit
6847e9016e
|
@ -284,7 +284,9 @@ if((NOT ZM_NO_CRASHTRACE) AND ((NOT HAVE_DECL_BACKTRACE) OR (NOT HAVE_EXECINFO_H
|
||||||
endif((NOT ZM_NO_CRASHTRACE) AND ((NOT HAVE_DECL_BACKTRACE) OR (NOT HAVE_EXECINFO_H)))
|
endif((NOT ZM_NO_CRASHTRACE) AND ((NOT HAVE_DECL_BACKTRACE) OR (NOT HAVE_EXECINFO_H)))
|
||||||
|
|
||||||
|
|
||||||
|
set(ZM_MEM_MAPPED 0)
|
||||||
if(NOT ZM_NO_MMAP)
|
if(NOT ZM_NO_MMAP)
|
||||||
|
set(ZM_MEM_MAPPED 1)
|
||||||
set(ZM_MMAP_PERLPACKAGE "Sys::Mmap")
|
set(ZM_MMAP_PERLPACKAGE "Sys::Mmap")
|
||||||
endif(NOT ZM_NO_MMAP)
|
endif(NOT ZM_NO_MMAP)
|
||||||
# Check for Perl. Version checking is removed because its ignored before CMake 2.8.8 and it seems that Perl is being detected as 5.16. instead of 5.6.0 ??
|
# Check for Perl. Version checking is removed because its ignored before CMake 2.8.8 and it seems that Perl is being detected as 5.16. instead of 5.6.0 ??
|
||||||
|
|
|
@ -58,6 +58,9 @@
|
||||||
#cmakedefine HAVE_DECL_MD5 1
|
#cmakedefine HAVE_DECL_MD5 1
|
||||||
#cmakedefine HAVE_DECL_GNUTLS_FINGERPRINT 1
|
#cmakedefine HAVE_DECL_GNUTLS_FINGERPRINT 1
|
||||||
|
|
||||||
|
/* Few ZM options that are needed by the source code */
|
||||||
|
#cmakedefine ZM_MEM_MAPPED 1
|
||||||
|
|
||||||
/* Its safe to assume that signal return type is void. This is a fix for zm_signal.h */
|
/* Its safe to assume that signal return type is void. This is a fix for zm_signal.h */
|
||||||
#define RETSIGTYPE void
|
#define RETSIGTYPE void
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue