]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
socket-util.h: include string.h
authorChen Qi <Qi.Chen@windriver.com>
Mon, 25 Feb 2019 08:37:19 +0000 (16:37 +0800)
committerAdrian Bunk <bunk@stusta.de>
Fri, 17 May 2019 06:38:06 +0000 (09:38 +0300)
Fix the following compile error:
src/basic/socket-util.h:187:30: error: implicit declaration of function 'strnlen'; did you mean 'strlen'? [-Werror=implicit-function-declaration]

src/basic/socket-util.h

index 6920fd99ba5d4ac27a67eae8ebeb607777e42a38..36ec422f2c09103d458e7fc6d1f09fe5425b66f6 100644 (file)
@@ -9,6 +9,7 @@
 #include <netinet/in.h>
 #include <stdbool.h>
 #include <stddef.h>
+#include <string.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <sys/un.h>