From 8e438b9e5f69a88e76da6ef087e77256e7119ec7 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 14 May 2021 18:51:53 +0200 Subject: [PATCH] Add missing headers and remove double typedef. --- src/command.c | 2 -- src/platforms/hosted/jlink_jtagtap.c | 2 +- src/platforms/pc/serial_unix.c | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/command.c b/src/command.c index 3a26a292..12547f9d 100644 --- a/src/command.c +++ b/src/command.c @@ -38,8 +38,6 @@ # include "traceswo.h" #endif -typedef bool (*cmd_handler)(target *t, int argc, const char **argv); - static bool cmd_version(target *t, int argc, char **argv); static bool cmd_help(target *t, int argc, char **argv); diff --git a/src/platforms/hosted/jlink_jtagtap.c b/src/platforms/hosted/jlink_jtagtap.c index 4b20e146..3903fe52 100644 --- a/src/platforms/hosted/jlink_jtagtap.c +++ b/src/platforms/hosted/jlink_jtagtap.c @@ -24,7 +24,7 @@ #include #include #include - +#include #include #include "general.h" diff --git a/src/platforms/pc/serial_unix.c b/src/platforms/pc/serial_unix.c index 96e2da92..c4f4f748 100644 --- a/src/platforms/pc/serial_unix.c +++ b/src/platforms/pc/serial_unix.c @@ -19,6 +19,7 @@ */ #include #include +#include #include #include #include