From b17f6f03606abddfb6712d167788d2f9321ca399 Mon Sep 17 00:00:00 2001 From: "David E. Tiller" <3858971+dtiller@users.noreply.github.com> Date: Fri, 29 Apr 2022 20:11:10 +0100 Subject: [PATCH] Fixed CMake issue and missing inttypes.h --- src/CMakeLists.txt | 6 ++++++ src/bchapply.c | 1 + src/pkttest.c | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6827249..96409a6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -478,12 +478,18 @@ list(APPEND pkttest_SOURCES pkttest.c bch.c eotd.c + textcolor.c ) add_executable(pkttest ${pkttest_SOURCES} ) +target_link_libraries(pkttest + ${MISC_LIBRARIES} + Threads::Threads + ) + list(APPEND bchapply_SOURCES bchapply.c bch.c diff --git a/src/bchapply.c b/src/bchapply.c index 7c36f08..a66d7f1 100644 --- a/src/bchapply.c +++ b/src/bchapply.c @@ -1,5 +1,6 @@ #include #include +#include #include "bch.h" #define SHOW_BYTES diff --git a/src/pkttest.c b/src/pkttest.c index 406331f..5696d95 100644 --- a/src/pkttest.c +++ b/src/pkttest.c @@ -1,5 +1,6 @@ #include -#include +#include +#include #include "bch.h" #include "eotd.h" #include "eotd_defs.h"