diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-23 22:26:38 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-23 22:26:38 -0400 |
commit | ee7d9a7237794b4b8b67a19a244ffb3bf69d34e4 (patch) | |
tree | 5cc657303c68f3df01c8adb95bd7d46bd144a039 /lib/libc/include | |
parent | c28dc314599caaa43779e52dba135734e2d597ee (diff) |
libc: bits: Fix __test_and_set definition
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/bits/_lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/include/bits/_lock.h b/lib/libc/include/bits/_lock.h index 4cfec0b..633ac31 100644 --- a/lib/libc/include/bits/_lock.h +++ b/lib/libc/include/bits/_lock.h @@ -37,7 +37,7 @@ typedef struct { } __libc_spinlock_t; #if defined(__x86_64__) -__attribute__((__always_inline__, __weak__)) inline int +__attribute__((__always_inline__)) inline int __test_and_set(__libc_spinlock_t *lock) { int tmp = 0; |