diff --git a/CMakeLists.txt b/CMakeLists.txt index baefd119..9fbf6ee1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,6 +254,11 @@ if(APPLE) -flax-vector-conversions) endif() +# Enforce LFS64 in glibc. +if(UNIX AND NOT APPLE) + target_compile_definitions(openshot-audio PUBLIC _FILE_OFFSET_BITS=64) +endif() + # ALSA (Linux only) if(UNIX AND NOT APPLE) set(NEED_ALSA TRUE) diff --git a/JuceLibraryCode/modules/juce_core/native/juce_SharedCode_posix.h b/JuceLibraryCode/modules/juce_core/native/juce_SharedCode_posix.h index d61c4de3..87e8edc8 100644 --- a/JuceLibraryCode/modules/juce_core/native/juce_SharedCode_posix.h +++ b/JuceLibraryCode/modules/juce_core/native/juce_SharedCode_posix.h @@ -166,7 +166,7 @@ int juce_siginterrupt ([[maybe_unused]] int sig, [[maybe_unused]] int flag) //============================================================================== namespace { - #if JUCE_LINUX || (JUCE_IOS && (! TARGET_OS_MACCATALYST) && (! __DARWIN_ONLY_64_BIT_INO_T)) // (this iOS stuff is to avoid a simulator bug) + #if JUCE_IOS && (! TARGET_OS_MACCATALYST) && (! __DARWIN_ONLY_64_BIT_INO_T) // (this iOS stuff is to avoid a simulator bug) using juce_statStruct = struct stat64; #define JUCE_STAT stat64 #else