mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 23:02:14 +00:00
This change enables all of the .c sources in musl be built with the clang -target wasm32-unknown-unknown-wasm
12 lines
188 B
C
12 lines
188 B
C
#ifndef __NR_restart_syscall
|
|
#include <syscall.h>
|
|
#endif
|
|
|
|
#include <stdlib.h>
|
|
|
|
#define a_barrier() syscall(__NR_membarrier)
|
|
|
|
#define a_cas(p, t, s) (abort(), s)
|
|
|
|
#define a_crash() abort()
|