From 3927be26127447806ea20f79f02d5a6be99cc70f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 2 Nov 2019 12:38:08 -0600 Subject: [PATCH] libs/libc/string/Make.defs: Need to include build support for files needed when CHAR_BIT != 8. --- include/string.h | 4 ++++ libs/libc/string/Make.defs | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/string.h b/include/string.h index 46032f2181a..8d641c35a04 100644 --- a/include/string.h +++ b/include/string.h @@ -44,6 +44,10 @@ #include +/* Non-standard support for cases where CHAR_BIT != 8 carried in strings.h + * only for convenience. See include/nuttx/b2c.h. + */ + #include /**************************************************************************** diff --git a/libs/libc/string/Make.defs b/libs/libc/string/Make.defs index ae05612ff74..8dc4263b686 100644 --- a/libs/libc/string/Make.defs +++ b/libs/libc/string/Make.defs @@ -1,7 +1,8 @@ ############################################################################ # libs/libc/string/Make.defs # -# Copyright (C) 2011-2012, 2014, 2016-2018 Gregory Nutt. All rights reserved. +# Copyright (C) 2011-2012, 2014, 2016-2019 Gregory Nutt. All rights +# reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -45,6 +46,8 @@ CSRCS += lib_strncasecmp.c lib_strncat.c lib_strncmp.c lib_strncpy.c CSRCS += lib_strndup.c lib_strcasestr.c lib_strpbrk.c lib_strrchr.c CSRCS += lib_strspn.c lib_strstr.c lib_strtok.c lib_strtokr.c CSRCS += lib_strsep.c lib_strerrorr.c lib_explicit_bzero.c lib_strsignal.c +CSRCS += lib_anbstr2cstr.c lib_ancstr2bstr.c lib_bmem2cmem.c +CSRCS += lib_bstrnlen.c lib_cmem2bmem.c lib_nbstr2cstr.c lib_ncstr2bstr.c ifneq ($(CONFIG_LIBC_ARCH_MEMCPY),y) ifeq ($(CONFIG_MEMCPY_VIK),y)