From 7e2963d1efc17b41aa74ecaf7aea1c4c004c9dac Mon Sep 17 00:00:00 2001 From: kody Date: Tue, 11 Jan 2022 22:42:17 +0800 Subject: [PATCH] fix cmake make issue --- CMakeLists.txt | 4 ++-- src/cli.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b637958..92db188c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,12 +98,12 @@ ENDIF () ADD_CUSTOM_COMMAND( OUTPUT embedded-probes.h - COMMAND ${PROJECT_SOURCE_DIR}/misc/probe2trace.pl -a embedded < ${PROJECT_SOURCE_DIR}/quicly-probes.d > ${CMAKE_CURRENT_BINARY_DIR}/embedded-probes.h + COMMAND perl ${PROJECT_SOURCE_DIR}/misc/probe2trace.pl -a embedded < ${PROJECT_SOURCE_DIR}/quicly-probes.d > ${CMAKE_CURRENT_BINARY_DIR}/embedded-probes.h DEPENDS quicly-probes.d misc/probe2trace.pl VERBATIM) ADD_CUSTOM_COMMAND( OUTPUT quicly-tracer.h - COMMAND ${PROJECT_SOURCE_DIR}/misc/probe2trace.pl -a tracer < ${PROJECT_SOURCE_DIR}/quicly-probes.d > ${CMAKE_CURRENT_BINARY_DIR}/quicly-tracer.h + COMMAND perl ${PROJECT_SOURCE_DIR}/misc/probe2trace.pl -a tracer < ${PROJECT_SOURCE_DIR}/quicly-probes.d > ${CMAKE_CURRENT_BINARY_DIR}/quicly-tracer.h DEPENDS quicly-probes.d misc/probe2trace.pl VERBATIM) diff --git a/src/cli.c b/src/cli.c index d738156f..3b4192c3 100644 --- a/src/cli.c +++ b/src/cli.c @@ -38,6 +38,7 @@ #include "quicly/defaults.h" #include "quicly/streambuf.h" #include "../deps/picotls/t/util.h" +#include #define MAX_BURST_PACKETS 10