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"