aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch
blob: 9fce51a593f28889b1e0a47fb9b6e073da5ef86f (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From a1c4716ceaed6333f8be01b5d4d971e64babcdd7 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 2 Sep 2022 18:57:42 -0700
Subject: [PATCH] Add missing standard headers for str* and exit APIs

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 jail/jail_uml             | Bin 19120 -> 19120 bytes
 jail/jail_uml.c           |   1 +
 port-helper/port-helper.c |   1 +
 uml_router/port.c         |   1 +
 uml_router/uml_switch.c   |   1 +
 watchdog/uml_watchdog.c   |   1 +
 6 files changed, 5 insertions(+)

--- a/jail/jail_uml.c
+++ b/jail/jail_uml.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <unistd.h>
+#include <stdlib.h> /* for exit */
 #include <errno.h>
 
 static void Usage(void)
--- a/port-helper/port-helper.c
+++ b/port-helper/port-helper.c
@@ -12,6 +12,7 @@ for read and write, and the console is f
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h> /* memset */
 #include <signal.h>
 #include <errno.h>
 #include <unistd.h>
--- a/uml_router/port.c
+++ b/uml_router/port.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h> /* memcmp */
 #include <unistd.h>
 #include <errno.h>
 #include <sys/socket.h>
--- a/uml_router/uml_switch.c
+++ b/uml_router/uml_switch.c
@@ -5,6 +5,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <stdlib.h>
+#include <string.h> /* strcmp */
 #include <signal.h>
 #include <fcntl.h>
 #include <stdint.h>
--- a/watchdog/uml_watchdog.c
+++ b/watchdog/uml_watchdog.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h> /* strcmp */
 #include <unistd.h>
 #include <signal.h>
 #include <errno.h>