[cmake] unistd typo fix (#747)
This commit is contained in:
parent
ccb0367dae
commit
07885e65ad
@ -91,6 +91,7 @@ add_definitions(-DHAVE_OT)
|
|||||||
add_definitions(-DHAVE_FALLBACK)
|
add_definitions(-DHAVE_FALLBACK)
|
||||||
|
|
||||||
|
|
||||||
|
## Functions and headers
|
||||||
include (CheckFunctionExists)
|
include (CheckFunctionExists)
|
||||||
include (CheckIncludeFile)
|
include (CheckIncludeFile)
|
||||||
macro (check_funcs) # Similar to AC_CHECK_FUNCS of autotools
|
macro (check_funcs) # Similar to AC_CHECK_FUNCS of autotools
|
||||||
@ -102,16 +103,15 @@ macro (check_funcs) # Similar to AC_CHECK_FUNCS of autotools
|
|||||||
endif ()
|
endif ()
|
||||||
endforeach ()
|
endforeach ()
|
||||||
endmacro ()
|
endmacro ()
|
||||||
check_funcs(atexit mprotect sysconf mmap strtod_l) #TODO: getpagesize newlocale isatty
|
check_funcs(atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l)
|
||||||
|
check_include_file(unistd.h HAVE_UNISTD_H)
|
||||||
check_include_file(unistd.h HAVE_UNIST_H)
|
if (${HAVE_UNISTD_H})
|
||||||
if (${HAVE_UNIST_H})
|
add_definitions(-DHAVE_UNISTD_H)
|
||||||
add_definitions(-DHAVE_UNIST_H)
|
endif ()
|
||||||
|
check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
|
||||||
|
if (${HAVE_SYS_MMAN_H})
|
||||||
|
add_definitions(-DHAVE_SYS_MMAN_H)
|
||||||
endif ()
|
endif ()
|
||||||
#check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
|
|
||||||
#if (${HAVE_SYS_MMAN_H})
|
|
||||||
# add_definitions(-DHAVE_SYS_MMAN_H)
|
|
||||||
#endif ()
|
|
||||||
check_include_file(xlocale.h HAVE_XLOCALE_H)
|
check_include_file(xlocale.h HAVE_XLOCALE_H)
|
||||||
if (${HAVE_XLOCALE_H})
|
if (${HAVE_XLOCALE_H})
|
||||||
add_definitions(-DHAVE_XLOCALE_H)
|
add_definitions(-DHAVE_XLOCALE_H)
|
||||||
|
Loading…
Reference in New Issue
Block a user