Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build with musl libc 1.2.4
Musl 1.2.4 gated the LFS64 compatibility shims behind the
_LARGEFILE64_SOURCE macro, and they will be removed entirely in musl
1.2.5. Use stat64 only when __GLIBC__ is defined.

Signed-off-by: Violet Purcell <vimproved@inventati.org>
  • Loading branch information
vimproved authored and falkTX committed Sep 30, 2023
1 parent 8e79c11 commit 9753cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/modules/water/files/File.cpp
Expand Up @@ -1265,7 +1265,7 @@ class DirectoryIterator::NativeIterator::Pimpl
//=====================================================================================================================
namespace
{
#ifdef CARLA_OS_LINUX
#ifdef __GLIBC__
typedef struct stat64 water_statStruct;
#define WATER_STAT stat64
#else
Expand Down

0 comments on commit 9753cb4

Please sign in to comment.