File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ check_include_file(assert.h HAVE_ASSERT_H)
11
11
check_include_file (fcntl.h HAVE_FCNTL_H )
12
12
check_include_file (io.h HAVE_IO_H )
13
13
check_function_exists (jbg_newlen HAVE_JBG_NEWLEN )
14
- check_function_exists (mmap HAVE_MMAP )
15
14
check_include_file (search.h HAVE_SEARCH_H )
16
15
check_include_file (string .h HAVE_STRING_H )
17
16
check_include_file (sys/types.h HAVE_SYS_TYPES_H )
18
- check_include_file (unistd.h HAVE_UNISTD_H )
17
+ if (NOT MSVC )
18
+ check_include_file (unistd.h HAVE_UNISTD_H )
19
+ check_function_exists (mmap HAVE_MMAP )
20
+ endif ()
19
21
20
22
if (WIN32 AND NOT WINRT )
21
23
set (USE_WIN32_FILEIO 1 )
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ endif()
21
21
#
22
22
# Check for unistd.h
23
23
#
24
- check_include_file (unistd.h Z_HAVE_UNISTD_H )
24
+ if (NOT MSVC )
25
+ check_include_file (unistd.h Z_HAVE_UNISTD_H )
26
+ endif ()
25
27
26
28
if (MSVC )
27
29
add_definitions (-D_CRT_SECURE_NO_DEPRECATE )
You can’t perform that action at this time.
0 commit comments