Skip to content

Commit b17f6f0

Browse files
committed
Fixed CMake issue and missing inttypes.h
1 parent 52d3d84 commit b17f6f0

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Diff for: src/CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,18 @@ list(APPEND pkttest_SOURCES
478478
pkttest.c
479479
bch.c
480480
eotd.c
481+
textcolor.c
481482
)
482483

483484
add_executable(pkttest
484485
${pkttest_SOURCES}
485486
)
486487

488+
target_link_libraries(pkttest
489+
${MISC_LIBRARIES}
490+
Threads::Threads
491+
)
492+
487493
list(APPEND bchapply_SOURCES
488494
bchapply.c
489495
bch.c

Diff for: src/bchapply.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <stdio.h>
22
#include <string.h>
3+
#include <inttypes.h>
34
#include "bch.h"
45

56
#define SHOW_BYTES

Diff for: src/pkttest.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <stdio.h>
2-
#include <strings.h>
2+
#include <string.h>
3+
#include <inttypes.h>
34
#include "bch.h"
45
#include "eotd.h"
56
#include "eotd_defs.h"

0 commit comments

Comments
 (0)