Преглед на файлове

Assume inet_pton() is missing on Windows

It's much more difficult to test for this on Windows since the
headers have version guards. Just play it safe and assume it is
missing. We can remove this check when we raise the base requirements
to Vista (or newer).
tags/v1.3.90
Pierre Ossman преди 9 години
родител
ревизия
820c0ceb2e
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5
    0
      CMakeLists.txt

+ 5
- 0
CMakeLists.txt Целия файл

@@ -321,7 +321,12 @@ else()
set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
endif()
check_function_exists(inet_aton HAVE_INET_ATON)
# This might give a false positive on Windows as it is also guarded by
# a version check that we do not satisfy (requires Vista, but we target
# Windows 2000).
if(NOT WIN32)
check_function_exists(inet_pton HAVE_INET_PTON)
endif()
check_function_exists(getaddrinfo HAVE_GETADDRINFO)
set(CMAKE_EXTRA_INCLUDE_FILES)
set(CMAKE_REQUIRED_LIBRARIES)

Loading…
Отказ
Запис