support to be included by add_subdirectory

remove TRYRUN to allow cross compile

fix windows 32bit build
This commit is contained in:
partic
2023-07-15 20:55:33 +08:00
committed by partic
parent e5e85cc93d
commit 62fc1a9afd
3 changed files with 13 additions and 14 deletions
+1 -11
View File
@@ -136,17 +136,7 @@ check_function_exists (mmap HAVE_MMAP)
check_symbol_exists (MAP_ANON sys/mman.h HAVE_MMAP_ANON)
check_c_source_runs(
"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
int main(void) {
int devzero = open(\"/dev/zero\", O_RDWR);
return devzero == -1 || mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, devzero, 0) == (void *)-1 ? 1 : 0;
}" HAVE_MMAP_DEV_ZERO)
set(HAVE_MMAP_DEV_ZERO OFF)
check_include_file(alloca.h HAVE_ALLOCA_H)