blob: 22186b8a7ea21454b479691448277ba04dde1bc3 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 93e6b81b721d9eb966a257bfdf7df6e8280b885c Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 16:37:19 +0800
4Subject: [PATCH 23/24] socket-util.h: include string.h
5
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
9Upstream-Status: Pending
10
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
17index 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--
292.7.4
30