From 2e868625f0354911a2c3d8d8390639d37e22e59a Mon Sep 17 00:00:00 2001 From: Stefan Schlosser Date: Fri, 16 Aug 2024 13:16:48 +0200 Subject: [PATCH] Unbreak FreeBSD build --- es-app/src/ScraperCmdLine.cpp | 2 +- es-core/src/utils/FileSystemUtil.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/es-app/src/ScraperCmdLine.cpp b/es-app/src/ScraperCmdLine.cpp index dda5635957..68660667d0 100644 --- a/es-app/src/ScraperCmdLine.cpp +++ b/es-app/src/ScraperCmdLine.cpp @@ -5,7 +5,7 @@ #include "SystemData.h" #include #include -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) #include #elif defined(WIN32) #include diff --git a/es-core/src/utils/FileSystemUtil.cpp b/es-core/src/utils/FileSystemUtil.cpp index 94be3a58bd..2ae4c1ebb5 100644 --- a/es-core/src/utils/FileSystemUtil.cpp +++ b/es-core/src/utils/FileSystemUtil.cpp @@ -21,6 +21,10 @@ #else // _WIN32 #include #include +#if defined(__FreeBSD__) +#define lstat64 lstat +#define stat64 stat +#endif // __FreeBSD__ #endif // _WIN32 //////////////////////////////////////////////////////////////////////////