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:
@@ -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()
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user