summaryrefslogtreecommitdiff
blob: 39c036ae52baa4ff535458667c110db723b10c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Fix building with clang-16, as lot of functions from string.h (including
memset) couldn't be found. Resulting in error: call to undeclared library
function memset type error.
Bug: https://bugs.gentoo.org/898550
--- a/port-helper/port-helper.c
+++ b/port-helper/port-helper.c
@@ -13,6 +13,7 @@ for read and write, and the console is functional.
 #include <stdio.h>
 #include <stdlib.h>
 #include <signal.h>
+#include <string.h>
 #include <errno.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
--- a/uml_switch/port.c
+++ b/uml_switch/port.c
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 #include <errno.h>
 #include <sys/socket.h>
 #include <sys/un.h>
--- a/uml_switch/uml_switch.c
+++ b/uml_switch/uml_switch.c
@@ -6,6 +6,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <signal.h>
+#include <string.h>
 #include <fcntl.h>
 #include <stdint.h>
 #include <sys/socket.h>
--- a/watchdog/uml_watchdog.c
+++ b/watchdog/uml_watchdog.c
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <signal.h>
+#include <string.h>
 #include <errno.h>
 #include <sys/socket.h>
 #include <sys/un.h>