diff options
author | Brent Cook <bcook@openbsd.org> | 2014-08-02 21:43:56 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-08-02 21:59:36 -0500 |
commit | 00b51d5c25abd0d91c7f6b25aeb3bdc8102e436b (patch) | |
tree | 436aa6d610c361c8e4b502f2ffdcf923ab3b647c /crypto | |
parent | c95574be9296988962cb1358c969144dc382061b (diff) | |
download | portable-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.tpl | 2 |
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 | ||
36 | if NO_STRNDUP | 36 | if NO_STRNDUP |
37 | libcompat_la_SOURCES += compat/strndup.c | 37 | libcompat_la_SOURCES += compat/strndup.c |
38 | if NO_STRNLEN | ||
38 | libcompat_la_SOURCES += compat/strnlen.c | 39 | libcompat_la_SOURCES += compat/strnlen.c |
39 | endif | 40 | endif |
41 | endif | ||
40 | 42 | ||
41 | if NO_ASPRINTF | 43 | if NO_ASPRINTF |
42 | libcompat_la_SOURCES += compat/bsd-asprintf.c | 44 | libcompat_la_SOURCES += compat/bsd-asprintf.c |