File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -239,13 +239,10 @@ check_struct_has_member(
239
239
)
240
240
set (HAVE_STRUCT_STAT_ST_RDEV ${PHP_HAVE_STRUCT_STAT_ST_RDEV} )
241
241
242
- check_struct_has_member (
243
- "struct flock"
244
- l_type
245
- fcntl.h
246
- PHP_HAVE_STRUCT_FLOCK
247
- )
248
- set (HAVE_STRUCT_FLOCK ${PHP_HAVE_STRUCT_FLOCK} )
242
+ cmake_push_check_state (RESET )
243
+ set (CMAKE_EXTRA_INCLUDE_FILES "fcntl.h" )
244
+ check_type_size ("struct flock" STRUCT_FLOCK ) # Defines HAVE_STRUCT_FLOCK
245
+ cmake_pop_check_state ()
249
246
250
247
# Check for sockaddr_storage and sockaddr.sa_len.
251
248
cmake_push_check_state (RESET )
@@ -349,7 +346,7 @@ cmake_push_check_state(RESET)
349
346
if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
350
347
list (APPEND CMAKE_EXTRA_INCLUDE_FILES ws2tcpip.h )
351
348
endif ()
352
- check_type_size ("socklen_t" SOCKLEN_T )
349
+ check_type_size ("socklen_t" SOCKLEN_T ) # Defines HAVE_SOCKLEN_T
353
350
cmake_pop_check_state ()
354
351
355
352
################################################################################
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
65
65
set (HAVE_SOCKLEN_T TRUE )
66
66
set (HAVE_STDDEF_H TRUE ) # Defined by check_type_size().
67
67
set (HAVE_STDINT_H TRUE ) # Defined by check_type_size().
68
+ set (HAVE_STRUCT_FLOCK FALSE )
69
+ set (HAVE_SYS_TYPES_H TRUE ) # Defined by check_type_size().
68
70
set (HAVE_WS2TCPIP_H TRUE )
69
71
set (PHP_EXT_FILEINFO_HAVE_STRCASESTR FALSE )
70
72
set (PHP_EXT_FILEINFO_HAVE_STRNDUP FALSE )
@@ -205,7 +207,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
205
207
set (PHP_HAVE_STRINGS_H FALSE )
206
208
set (PHP_HAVE_STRLCAT FALSE )
207
209
set (PHP_HAVE_STRLCPY FALSE )
208
- set (PHP_HAVE_STRUCT_FLOCK FALSE )
209
210
set (PHP_HAVE_STRUCT_SOCKADDR_SA_LEN FALSE )
210
211
set (PHP_HAVE_STRUCT_STAT_ST_BLKSIZE FALSE )
211
212
set (PHP_HAVE_STRUCT_STAT_ST_BLOCKS FALSE )
You can’t perform that action at this time.
0 commit comments