aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-08-02 21:43:56 -0500
committerBrent Cook <bcook@openbsd.org>2014-08-02 21:59:36 -0500
commit00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b (patch)
tree436aa6d610c361c8e4b502f2ffdcf923ab3b647c /crypto
parentc95574be9296988962cb1358c969144dc382061b (diff)
downloadportable-00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b.tar.gz
portable-00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b.tar.bz2
portable-00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b.zip
conditionally build strnlen if needed.
it is only used by strndup prodded by Sortie@
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Makefile.am.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl
index d203b7b..04ff7f7 100644
--- a/crypto/Makefile.am.tpl
+++ b/crypto/Makefile.am.tpl
@@ -35,8 +35,10 @@ endif
35 35
36if NO_STRNDUP 36if NO_STRNDUP
37libcompat_la_SOURCES += compat/strndup.c 37libcompat_la_SOURCES += compat/strndup.c
38if NO_STRNLEN
38libcompat_la_SOURCES += compat/strnlen.c 39libcompat_la_SOURCES += compat/strnlen.c
39endif 40endif
41endif
40 42
41if NO_ASPRINTF 43if NO_ASPRINTF
42libcompat_la_SOURCES += compat/bsd-asprintf.c 44libcompat_la_SOURCES += compat/bsd-asprintf.c