From 8877e9bc55fdbdb70c967b7720f57fba148a7dda Mon Sep 17 00:00:00 2001 From: kinichiro Date: Thu, 9 Mar 2017 22:49:04 +0900 Subject: Add recallocarray --- crypto/CMakeLists.txt | 5 +++++ crypto/Makefile.am | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'crypto') diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 99670f8..cda4fb3 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -691,6 +691,11 @@ if(NOT HAVE_REALLOCARRAY) set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray) endif() +if(NOT HAVE_RECALLOCARRAY) + set(CRYPTO_SRC ${CRYPTO_SRC} compat/recallocarray.c) + set(EXTRA_EXPORT ${EXTRA_EXPORT} recallocarray) +endif() + if(NOT HAVE_STRCASECMP) set(CRYPTO_SRC ${CRYPTO_SRC} compat/strcasecmp.c) set(EXTRA_EXPORT ${EXTRA_EXPORT} strcasecmp) diff --git a/crypto/Makefile.am b/crypto/Makefile.am index 23aaeac..78f3dd8 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am @@ -93,6 +93,10 @@ if !HAVE_REALLOCARRAY libcompat_la_SOURCES += compat/reallocarray.c endif +if !HAVE_RECALLOCARRAY +libcompat_la_SOURCES += compat/recallocarray.c +endif + if !HAVE_TIMINGSAFE_MEMCMP libcompat_la_SOURCES += compat/timingsafe_memcmp.c endif -- cgit v1.2.3-55-g6feb