blob: 9fce51a593f28889b1e0a47fb9b6e073da5ef86f [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From a1c4716ceaed6333f8be01b5d4d971e64babcdd7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 2 Sep 2022 18:57:42 -0700
4Subject: [PATCH] Add missing standard headers for str* and exit APIs
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 jail/jail_uml | Bin 19120 -> 19120 bytes
11 jail/jail_uml.c | 1 +
12 port-helper/port-helper.c | 1 +
13 uml_router/port.c | 1 +
14 uml_router/uml_switch.c | 1 +
15 watchdog/uml_watchdog.c | 1 +
16 6 files changed, 5 insertions(+)
17
18--- a/jail/jail_uml.c
19+++ b/jail/jail_uml.c
20@@ -1,5 +1,6 @@
21 #include <stdio.h>
22 #include <unistd.h>
23+#include <stdlib.h> /* for exit */
24 #include <errno.h>
25
26 static void Usage(void)
27--- a/port-helper/port-helper.c
28+++ b/port-helper/port-helper.c
29@@ -12,6 +12,7 @@ for read and write, and the console is f
30
31 #include <stdio.h>
32 #include <stdlib.h>
33+#include <string.h> /* memset */
34 #include <signal.h>
35 #include <errno.h>
36 #include <unistd.h>
37--- a/uml_router/port.c
38+++ b/uml_router/port.c
39@@ -1,5 +1,6 @@
40 #include <stdio.h>
41 #include <stdlib.h>
42+#include <string.h> /* memcmp */
43 #include <unistd.h>
44 #include <errno.h>
45 #include <sys/socket.h>
46--- a/uml_router/uml_switch.c
47+++ b/uml_router/uml_switch.c
48@@ -5,6 +5,7 @@
49 #include <stdio.h>
50 #include <errno.h>
51 #include <stdlib.h>
52+#include <string.h> /* strcmp */
53 #include <signal.h>
54 #include <fcntl.h>
55 #include <stdint.h>
56--- a/watchdog/uml_watchdog.c
57+++ b/watchdog/uml_watchdog.c
58@@ -1,5 +1,6 @@
59 #include <stdio.h>
60 #include <stdlib.h>
61+#include <string.h> /* strcmp */
62 #include <unistd.h>
63 #include <signal.h>
64 #include <errno.h>