From adde656bb7a859fb4cc334cb89a00840a7023c2e Mon Sep 17 00:00:00 2001 From: kinichiro Date: Sun, 26 Dec 2021 15:42:47 +0900 Subject: 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. --- crypto/CMakeLists.txt | 5 +++++ crypto/Makefile.am | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'crypto') diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 12bc8ae..196ae4a 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -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() diff --git a/crypto/Makefile.am b/crypto/Makefile.am index 155df59..42d0dd9 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am @@ -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 -- cgit v1.2.3-55-g6feb