From 3f502202d0e153bb297fd19044f7d3958be5f47a Mon Sep 17 00:00:00 2001 From: Sven Fink Date: Wed, 4 Dec 2024 11:36:22 +0100 Subject: [PATCH] fix: ensure include pist_quote.h, remove duplicate includes Make sure, that every compilation unit has an include to pist_quote.h where needed. Additionally removed dupplicate includes. --- include/pistache/pist_check.h | 2 +- include/pistache/transport.h | 2 -- src/common/transport.cc | 1 + src/server/endpoint.cc | 1 + src/server/listener.cc | 1 + 5 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/pistache/pist_check.h b/include/pistache/pist_check.h index f9ef2fea1..4bb400187 100644 --- a/include/pistache/pist_check.h +++ b/include/pistache/pist_check.h @@ -15,7 +15,7 @@ #define INCLUDED_PSCHECK_H #include - +#include #include "pist_syslog.h" // If DEBUG is enabled, PS_LOGDBG_STACK_TRACE logs a stack trace diff --git a/include/pistache/transport.h b/include/pistache/transport.h index d316309eb..8fbfb3bf9 100644 --- a/include/pistache/transport.h +++ b/include/pistache/transport.h @@ -16,8 +16,6 @@ #include PST_SYS_RESOURCE_HDR // for PST_RUSAGE + PST_GETRUSAGE -#include -#include #include #include #include diff --git a/src/common/transport.cc b/src/common/transport.cc index b2b0b5605..2376d2a6d 100644 --- a/src/common/transport.cc +++ b/src/common/transport.cc @@ -12,6 +12,7 @@ */ #include +#include #ifdef _USE_LIBEVENT_LIKE_APPLE diff --git a/src/server/endpoint.cc b/src/server/endpoint.cc index b061b51bd..b21ae4c32 100644 --- a/src/server/endpoint.cc +++ b/src/server/endpoint.cc @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/src/server/listener.cc b/src/server/listener.cc index 2601fb1c1..6bf320dce 100644 --- a/src/server/listener.cc +++ b/src/server/listener.cc @@ -16,6 +16,7 @@ #include #include #include +#include #include #include