Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 93e6b81b721d9eb966a257bfdf7df6e8280b885c Mon Sep 17 00:00:00 2001 |
| 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Mon, 25 Feb 2019 16:37:19 +0800 |
| 4 | Subject: [PATCH 23/24] socket-util.h: include string.h |
| 5 | |
| 6 | Fix the following compile error: |
| 7 | src/basic/socket-util.h:187:30: error: implicit declaration of function 'strnlen'; did you mean 'strlen'? [-Werror=implicit-function-declaration] |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 12 | --- |
| 13 | src/basic/socket-util.h | 1 + |
| 14 | 1 file changed, 1 insertion(+) |
| 15 | |
| 16 | diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h |
| 17 | index 574d2b7..097aa4d 100644 |
| 18 | --- a/src/basic/socket-util.h |
| 19 | +++ b/src/basic/socket-util.h |
| 20 | @@ -12,6 +12,7 @@ |
| 21 | #include <sys/socket.h> |
| 22 | #include <sys/types.h> |
| 23 | #include <sys/un.h> |
| 24 | +#include <string.h> |
| 25 | |
| 26 | #include "macro.h" |
| 27 | #include "missing_socket.h" |
| 28 | -- |
| 29 | 2.7.4 |
| 30 | |