cmake: Check for inet functions.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 21:29:22 +0000 (21:29 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 21:29:22 +0000 (21:29 +0000)
extras/buildsystem/cmake/include/config.cmake

index 2bca042..a409a36 100644 (file)
@@ -113,6 +113,10 @@ set(CMAKE_EXTRA_INCLUDE_FILES sys/stat.h)
 vlc_check_functions_exist(lstat fstat stat)
 set(CMAKE_EXTRA_INCLUDE_FILES)
 
+set(CMAKE_EXTRA_INCLUDE_FILES arpa/inet.h)
+vlc_check_functions_exist(inet_pton inet_aton inet_ntop inet_pton)
+set(CMAKE_EXTRA_INCLUDE_FILES)
+
 set(CMAKE_REQUIRED_LIBRARIES)
 
 check_library_exists(poll poll "" HAVE_POLL)