aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2017-03-09 22:49:04 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2017-03-09 23:00:04 +0900
commit8877e9bc55fdbdb70c967b7720f57fba148a7dda (patch)
tree233b458c35130b15172908d6f0e9e99e6a078152 /crypto
parent27f08790305216e5730c5bb5352db9f616c4c56f (diff)
downloadportable-8877e9bc55fdbdb70c967b7720f57fba148a7dda.tar.gz
portable-8877e9bc55fdbdb70c967b7720f57fba148a7dda.tar.bz2
portable-8877e9bc55fdbdb70c967b7720f57fba148a7dda.zip
Add recallocarray
Diffstat (limited to 'crypto')
-rw-r--r--crypto/CMakeLists.txt5
-rw-r--r--crypto/Makefile.am4
2 files changed, 9 insertions, 0 deletions
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)
691 set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray) 691 set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray)
692endif() 692endif()
693 693
694if(NOT HAVE_RECALLOCARRAY)
695 set(CRYPTO_SRC ${CRYPTO_SRC} compat/recallocarray.c)
696 set(EXTRA_EXPORT ${EXTRA_EXPORT} recallocarray)
697endif()
698
694if(NOT HAVE_STRCASECMP) 699if(NOT HAVE_STRCASECMP)
695 set(CRYPTO_SRC ${CRYPTO_SRC} compat/strcasecmp.c) 700 set(CRYPTO_SRC ${CRYPTO_SRC} compat/strcasecmp.c)
696 set(EXTRA_EXPORT ${EXTRA_EXPORT} strcasecmp) 701 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
93libcompat_la_SOURCES += compat/reallocarray.c 93libcompat_la_SOURCES += compat/reallocarray.c
94endif 94endif
95 95
96if !HAVE_RECALLOCARRAY
97libcompat_la_SOURCES += compat/recallocarray.c
98endif
99
96if !HAVE_TIMINGSAFE_MEMCMP 100if !HAVE_TIMINGSAFE_MEMCMP
97libcompat_la_SOURCES += compat/timingsafe_memcmp.c 101libcompat_la_SOURCES += compat/timingsafe_memcmp.c
98endif 102endif