blob: 37987b57f66871b1b3f045ab278a2fa5333fec1e [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001From 56fb30d93e96d7f983af0cb4dff9155da91dd671 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 16:37:19 +0800
Brad Bishop15ae2502019-06-18 21:44:24 -04004Subject: socket-util.h: include string.h
Brad Bishop19323692019-04-05 15:28:33 -04005
6Fix the following compile error:
7src/basic/socket-util.h:187:30: error: implicit declaration of function 'strnlen'; did you mean 'strlen'? [-Werror=implicit-function-declaration]
8
Brad Bishop15ae2502019-06-18 21:44:24 -04009Upstream-Status: Accepted
Brad Bishop19323692019-04-05 15:28:33 -040010
11Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
12---
13 src/basic/socket-util.h | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h
Brad Bishop15ae2502019-06-18 21:44:24 -040017index 6920fd99ba..36ec422f2c 100644
Brad Bishop19323692019-04-05 15:28:33 -040018--- a/src/basic/socket-util.h
19+++ b/src/basic/socket-util.h
Brad Bishop15ae2502019-06-18 21:44:24 -040020@@ -9,6 +9,7 @@
21 #include <netinet/in.h>
22 #include <stdbool.h>
23 #include <stddef.h>
24+#include <string.h>
Brad Bishop19323692019-04-05 15:28:33 -040025 #include <sys/socket.h>
26 #include <sys/types.h>
27 #include <sys/un.h>
Brad Bishop19323692019-04-05 15:28:33 -040028--
Brad Bishop15ae2502019-06-18 21:44:24 -0400292.20.1
Brad Bishop19323692019-04-05 15:28:33 -040030