blob: 9fce51a593f28889b1e0a47fb9b6e073da5ef86f [file] [log] [blame]
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>