You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/06/03 13:46:15 UTC

[incubator-nuttx] 03/03: libc: Fix warning: implicit declaration of function ‘strnlen’

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 3c4fec80f876c1bde053108b1b11381d792f2fc1
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Jun 3 17:14:01 2020 +0800

    libc: Fix warning: implicit declaration of function ‘strnlen’
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
    Change-Id: Ib2094a2ef0c3910e9b30685e73fc7012bf23a35f
---
 libs/libc/wchar/lib_mbsnrtowcs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/libc/wchar/lib_mbsnrtowcs.c b/libs/libc/wchar/lib_mbsnrtowcs.c
index 4bd5ecf..b1f133f 100644
--- a/libs/libc/wchar/lib_mbsnrtowcs.c
+++ b/libs/libc/wchar/lib_mbsnrtowcs.c
@@ -38,6 +38,7 @@
  ****************************************************************************/
 
 #include <sys/types.h>
+#include <string.h>
 #include <wchar.h>
 
 #ifdef CONFIG_LIBC_WCHAR