Skip to content

Commit

Permalink
Only apply __libc_single_threaded stub on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jul 18, 2024
1 parent b1946d8 commit e1af1b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
#include "sui.h"

// __libc_single_threaded not defined in older GLIBC versions
#if defined(__linux__)
__attribute__((weak))
char __libc_single_threaded = 0;
#endif

enum class InjectResult { kAlreadyExists, kError, kSuccess };

Expand Down

0 comments on commit e1af1b2

Please sign in to comment.