From 07af50f7896a36a82efc19b5030779ab36302fa4 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 30 Jan 2026 15:10:54 +0000 Subject: [PATCH] util: Drop *BSD headers in `batchpriority.cpp` Currently, there are issues with headers in `batchpriority.cpp`: 1. `SCHED_BATCH` is not defined on all supported *BSD platforms. 2. `pthread.h` is necessary on other platforms. This addresses both issues and fixes other includes. --- src/util/batchpriority.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/batchpriority.cpp b/src/util/batchpriority.cpp index 15442346dd1..86abc011513 100644 --- a/src/util/batchpriority.cpp +++ b/src/util/batchpriority.cpp @@ -2,15 +2,15 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include + #include #include -#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) -#include -#include -#endif +#include #ifndef WIN32 +#include #include #endif