Add strtonum to compat library and export it

crypto library requires strtonum now, and add it to compat library.
remove it from applications compat/ directories.
This commit is contained in:
kinichiro
2021-12-26 15:42:47 +09:00
parent 1b95c5d584
commit adde656bb7
10 changed files with 13 additions and 40 deletions

View File

@@ -61,14 +61,6 @@ if(WIN32)
set(OPENSSL_SRC ${OPENSSL_SRC} compat/poll_win.c)
endif()
check_function_exists(strtonum HAVE_STRTONUM)
if(HAVE_STRTONUM AND CMAKE_SYSTEM_NAME MATCHES "Darwin" AND
CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 20)
add_definitions(-DHAVE_STRTONUM)
else()
set(OPENSSL_SRC ${OPENSSL_SRC} compat/strtonum.c)
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
if(NOT HAVE_CLOCK_GETTIME)

View File

@@ -84,10 +84,6 @@ openssl_SOURCES += compat/clock_gettime_osx.c
endif
endif
if !HAVE_STRTONUM
openssl_SOURCES += compat/strtonum.c
endif
noinst_HEADERS = apps.h
noinst_HEADERS += progs.h
noinst_HEADERS += s_apps.h