From 1c8e51c9f9a07e8383eb5e236722b2f0bf6bda2c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 8 Oct 2025 05:28:16 +0500 Subject: [PATCH] common: port: always include unistd.h for POSIX systems --- common/port.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/port.h b/common/port.h index e5c7bae5..e3b660e0 100644 --- a/common/port.h +++ b/common/port.h @@ -22,14 +22,16 @@ GNU General Public License for more details. #include #include "build.h" +#if XASH_POSIX + #include + #define OS_LIB_PREFIX "lib" +#endif + #if XASH_APPLE #include - #define OS_LIB_PREFIX "lib" #define OS_LIB_EXT "dylib" #define OPEN_COMMAND "open" #elif XASH_POSIX - #include - #define OS_LIB_PREFIX "lib" #define OS_LIB_EXT "so" #define OPEN_COMMAND "xdg-open" #elif XASH_WIN32