bump base requirement to Windows Vista, use builtin inet_ntop/pton

This commit is contained in:
Brent Cook
2018-03-14 07:29:04 -05:00
parent b7397ab184
commit 3fb9e63b90
11 changed files with 3 additions and 46 deletions

View File

@@ -13,13 +13,6 @@ set(
ocspcheck.c
)
check_function_exists(inet_ntop HAVE_INET_NTOP)
if(HAVE_INET_NTOP)
add_definitions(-DHAVE_INET_NTOP)
else()
set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/inet_ntop.c)
endif()
check_function_exists(memmem HAVE_MEMMEM)
if(HAVE_MEMMEM)
add_definitions(-DHAVE_MEMMEM)

View File

@@ -14,10 +14,6 @@ ocspcheck_SOURCES = http.c
ocspcheck_SOURCES += ocspcheck.c
noinst_HEADERS = http.h
if !HAVE_INET_NTOP
ocspcheck_SOURCES += compat/inet_ntop.c
endif
if !HAVE_MEMMEM
ocspcheck_SOURCES += compat/memmem.c
endif