diff options
| author | Brent Cook <bcook@openbsd.org> | 2014-07-27 06:11:56 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2014-07-28 07:07:23 -0500 |
| commit | 0a74a4d4648f8655ad4862f28d995fcf2865b3b2 (patch) | |
| tree | e59f4c643104f98fe504604e590f458edbb8fd24 /crypto | |
| parent | fb67b92eb2bf94816facee5469a7015101b3a07e (diff) | |
| download | portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.tar.gz portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.tar.bz2 portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.zip | |
add strndup/strnlen compat functions from OpenBSD
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/Makefile.am.tpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl index a29e07f..6ac6c4f 100644 --- a/crypto/Makefile.am.tpl +++ b/crypto/Makefile.am.tpl | |||
| @@ -33,6 +33,11 @@ if NO_STRLCPY | |||
| 33 | libcompat_la_SOURCES += compat/strlcpy.c | 33 | libcompat_la_SOURCES += compat/strlcpy.c |
| 34 | endif | 34 | endif |
| 35 | 35 | ||
| 36 | if NO_STRNDUP | ||
| 37 | libcompat_la_SOURCES += compat/strndup.c | ||
| 38 | libcompat_la_SOURCES += compat/strnlen.c | ||
| 39 | endif | ||
| 40 | |||
| 36 | if NO_REALLOCARRAY | 41 | if NO_REALLOCARRAY |
| 37 | libcompat_la_SOURCES += compat/reallocarray.c | 42 | libcompat_la_SOURCES += compat/reallocarray.c |
| 38 | endif | 43 | endif |
