mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-24 13:41:14 +00:00
Don't use SDL locking functions in our open()/close() hooks
Other shared library constructors can invoke open()/close() before SDL2-compat's constructor runs to load SDL3 and populate the SDL3 function table. This causes SDL_AtomicLock()/SDL_AtomicUnlock() to jump to 0. See #1707
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
// The specific kernel change required to run without root is:
|
||||
// https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=45bc3d26c95a8fc63a7d8668ca9e57ef0883351c
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
// NOTE: This file MUST NOT include fcntl.h due to open() -> open64()
|
||||
// redirection that happens when _FILE_OFFSET_BITS=64!
|
||||
|
||||
Reference in New Issue
Block a user