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

@@ -888,6 +888,11 @@ if(NOT HAVE_STRSEP)
set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep)
endif()
if(NOT HAVE_STRTONUM)
set(CRYPTO_SRC ${CRYPTO_SRC} compat/strtonum.c)
set(EXTRA_EXPORT ${EXTRA_EXPORT} strtonum)
endif()
if(NOT HAVE_SYSLOG_R)
set(CRYPTO_SRC ${CRYPTO_SRC} compat/syslog_r.c)
endif()

View File

@@ -76,6 +76,9 @@ endif
if !HAVE_STRSEP
-echo strsep >> crypto_portable.sym
endif
if !HAVE_STRTONUM
-echo strtonum >> crypto_portable.sym
endif
if !HAVE_TIMEGM
-echo timegm >> crypto_portable.sym
endif
@@ -175,6 +178,10 @@ if !HAVE_STRSEP
libcompat_la_SOURCES += compat/strsep.c
endif
if !HAVE_STRTONUM
libcompat_la_SOURCES += compat/strtonum.c
endif
if !HAVE_ASPRINTF
libcompat_la_SOURCES += compat/bsd-asprintf.c
endif