Compat code for strndup and strnlen.

This commit is contained in:
Nicholas Marriott
2017-03-09 15:43:08 +00:00
parent 180ebf0208
commit b79df1dc29
5 changed files with 105 additions and 0 deletions

View File

@ -228,6 +228,12 @@ endif
if NO_STRLCPY
nodist_tmux_SOURCES += compat/strlcpy.c
endif
if NO_STRNLEN
nodist_tmux_SOURCES += compat/strnlen.c
endif
if NO_STRNDUP
nodist_tmux_SOURCES += compat/strndup.c
endif
if NO_ASPRINTF
nodist_tmux_SOURCES += compat/asprintf.c
endif