diff --git a/include/co_context/config.hpp b/include/co_context/config.hpp index e1e87c8..375a3d5 100644 --- a/include/co_context/config.hpp +++ b/include/co_context/config.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include @@ -137,9 +138,9 @@ namespace config { enum class level : uint8_t { verbose, debug, info, warning, error, no_log }; // inline constexpr level log_level = level::verbose; - // inline constexpr level log_level = level::debug; + inline constexpr level log_level = level::debug; // inline constexpr level log_level = level::info; - inline constexpr level log_level = level::warning; + // inline constexpr level log_level = level::warning; // inline constexpr level log_level = level::error; // inline constexpr level log_level = level::no_log; diff --git a/include/co_context/utility/time_cast.hpp b/include/co_context/utility/time_cast.hpp index bed05a0..47ac4e6 100644 --- a/include/co_context/utility/time_cast.hpp +++ b/include/co_context/utility/time_cast.hpp @@ -3,7 +3,6 @@ #include #include -#include namespace co_context { diff --git a/include/uring/compat.hpp b/include/uring/compat.hpp index 9c176e7..801e213 100644 --- a/include/uring/compat.hpp +++ b/include/uring/compat.hpp @@ -1,6 +1,20 @@ #pragma once +#if __has_include() #include +/* is included above and not needed again */ +#define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H 1 +#else +#include + +struct __kernel_timespec { + int64_t tv_sec; + long long tv_nsec; +}; + +/* is not available, so it can't be included */ +#define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H 1 +#endif #if __has_include() #include