@ -64,6 +64,18 @@ return 0;
}
"
I O S )
CHECK_C_SOURCE_COMPILES ( "
# i n c l u d e < s t d i o . h >
# i n c l u d e < T a r g e t C o n d i t i o n a l s . h >
i n t main ( ) {
# i f T A R G E T _ O S _ I P H O N E = = 0 | | _ _ I P H O N E _ O S _ V E R S I O N _ M I N _ R E Q U I R E D < 1 0 0 0 0 0
# e r r o r N o t i O S v 1 0
# e n d i f
r e t u r n 0 ;
}
"
I O S _ V 1 0 )
ENDIF ( )
IF ( IOS AND HAVE_LIBRESOLV )
@ -236,7 +248,13 @@ CHECK_SYMBOL_EXISTS (SIOCGIFADDR "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_IOCTL_S
CHECK_SYMBOL_EXISTS ( MSG_NOSIGNAL "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_MSG_NOSIGNAL )
CHECK_SYMBOL_EXISTS ( PF_INET6 "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_PF_INET6 )
CHECK_SYMBOL_EXISTS ( SO_NONBLOCK "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_SO_NONBLOCK )
CHECK_SYMBOL_EXISTS ( CLOCK_MONOTONIC "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_CLOCK_GETTIME_MONOTONIC )
# X C o d e v 8 b u g : i O S w h e n t a r g e t i n g l e s s t h a n v 1 0 w i l l s a y c l o c k _ g e t t i m e e x i s t s , i t i s a w e a k
# s y m b o l t h a t o n l y e x i s t s i n i O S 1 0 a n d w i l l c a u s e a c r a s h a t r u n t i m e w h e n r u n n i n g o n v e r s i o n s
# l e s s t h a n 1 0 . S k i p f i n d i n g C L O C K _ M O N O T O N I C o n i O S t a r g e t < 1 0 .
IF ( ( NOT IOS ) OR IOS_V10 )
CHECK_SYMBOL_EXISTS ( CLOCK_MONOTONIC "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_CLOCK_GETTIME_MONOTONIC )
ENDIF ( )
CHECK_STRUCT_HAS_MEMBER ( "struct sockaddr_in6" sin6_scope_id "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID LANGUAGE C )