Browse Source

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>
pull/1806/head
Violet Purcell 1 year ago
parent
commit
98e559d0a7
No known key found for this signature in database GPG Key ID: FC4685561892D0BA
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/modules/water/files/File.cpp

+ 1
- 1
source/modules/water/files/File.cpp View File

@@ -1265,7 +1265,7 @@ private:
//===================================================================================================================== //=====================================================================================================================
namespace namespace
{ {
#ifdef CARLA_OS_LINUX
#ifdef __GLIBC__
typedef struct stat64 water_statStruct; typedef struct stat64 water_statStruct;
#define WATER_STAT stat64 #define WATER_STAT stat64
#else #else


Loading…
Cancel
Save