From 7878f9233ebe5dfb1c9dbde112e5b41eb6b3902d Mon Sep 17 00:00:00 2001 From: superp00t Date: Wed, 23 Aug 2023 18:59:03 -0400 Subject: [PATCH] fix(os): include when using procfs for OsGetExeName --- bc/os/Path.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bc/os/Path.cpp b/bc/os/Path.cpp index 5d86aeb..5d40e28 100644 --- a/bc/os/Path.cpp +++ b/bc/os/Path.cpp @@ -2,14 +2,21 @@ #include "bc/String.hpp" #include "bc/file/Path.hpp" +// Win32 #if defined(WHOA_SYSTEM_WIN) #include #endif +// Darwin #if defined(WHOA_SYSTEM_MAC) #include #endif +// procfs +#if defined(WHOA_SYSTEM_LINUX) +#include +#endif + // Get the full path of the currently running .exe/ELF/Mach-O executable void OsGetExeName(char* buffer, size_t chars) { #if defined(WHOA_SYSTEM_WIN)