| 
														
															@@ -6,6 +6,7 @@ project(enet) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 include(CheckFunctionExists) 
														 | 
														
														 | 
														
															 include(CheckFunctionExists) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 include(CheckStructHasMember) 
														 | 
														
														 | 
														
															 include(CheckStructHasMember) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 include(CheckTypeSize) 
														 | 
														
														 | 
														
															 include(CheckTypeSize) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_function_exists("fcntl" HAS_FCNTL) 
														 | 
														
														 | 
														
															 check_function_exists("fcntl" HAS_FCNTL) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_function_exists("poll" HAS_POLL) 
														 | 
														
														 | 
														
															 check_function_exists("poll" HAS_POLL) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_function_exists("getaddrinfo" HAS_GETADDRINFO) 
														 | 
														
														 | 
														
															 check_function_exists("getaddrinfo" HAS_GETADDRINFO) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -14,10 +15,13 @@ check_function_exists("gethostbyname_r" HAS_GETHOSTBYNAME_R) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_function_exists("gethostbyaddr_r" HAS_GETHOSTBYADDR_R) 
														 | 
														
														 | 
														
															 check_function_exists("gethostbyaddr_r" HAS_GETHOSTBYADDR_R) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_function_exists("inet_pton" HAS_INET_PTON) 
														 | 
														
														 | 
														
															 check_function_exists("inet_pton" HAS_INET_PTON) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_function_exists("inet_ntop" HAS_INET_NTOP) 
														 | 
														
														 | 
														
															 check_function_exists("inet_ntop" HAS_INET_NTOP) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_struct_has_member("struct msghdr" "msg_flags" "sys/types.h;sys/socket.h" HAS_MSGHDR_FLAGS) 
														 | 
														
														 | 
														
															 check_struct_has_member("struct msghdr" "msg_flags" "sys/types.h;sys/socket.h" HAS_MSGHDR_FLAGS) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 set(CMAKE_EXTRA_INCLUDE_FILES "sys/types.h" "sys/socket.h") 
														 | 
														
														 | 
														
															 set(CMAKE_EXTRA_INCLUDE_FILES "sys/types.h" "sys/socket.h") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY) 
														 | 
														
														 | 
														
															 check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 unset(CMAKE_EXTRA_INCLUDE_FILES) 
														 | 
														
														 | 
														
															 unset(CMAKE_EXTRA_INCLUDE_FILES) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 if(MSVC) 
														 | 
														
														 | 
														
															 if(MSVC) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	add_definitions(-W3) 
														 | 
														
														 | 
														
															 	add_definitions(-W3) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 else() 
														 | 
														
														 | 
														
															 else() 
														 |