add strndup/strnlen compat functions from OpenBSD

This commit is contained in:
Brent Cook
2014-07-27 06:11:56 -05:00
parent fb67b92eb2
commit 0a74a4d464
5 changed files with 17 additions and 1 deletions

View File

@@ -33,6 +33,11 @@ if NO_STRLCPY
libcompat_la_SOURCES += compat/strlcpy.c
endif
if NO_STRNDUP
libcompat_la_SOURCES += compat/strndup.c
libcompat_la_SOURCES += compat/strnlen.c
endif
if NO_REALLOCARRAY
libcompat_la_SOURCES += compat/reallocarray.c
endif