conditionally build strnlen if needed.

it is only used by strndup

prodded by Sortie@
This commit is contained in:
Brent Cook
2014-08-02 21:43:56 -05:00
parent c95574be92
commit 00b51d5c25
3 changed files with 9 additions and 0 deletions

View File

@@ -35,8 +35,10 @@ endif
if NO_STRNDUP
libcompat_la_SOURCES += compat/strndup.c
if NO_STRNLEN
libcompat_la_SOURCES += compat/strnlen.c
endif
endif
if NO_ASPRINTF
libcompat_la_SOURCES += compat/bsd-asprintf.c