]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/sources/getentropy.c
Use MUSL's `weak*` feature in bottom half (#306)
[wasi-libc.git] / libc-bottom-half / sources / getentropy.c
index 7f96b85e1f67dced02bf7fa90fd22f1fd97c6a19..1771941a31b91b4c7da7a6aad535a635153faad0 100644 (file)
@@ -21,4 +21,4 @@ int __getentropy(void *buffer, size_t len) {
 
     return 0;
 }
-extern __typeof(__getentropy) getentropy __attribute__((weak, alias("__getentropy")));
+weak_alias(__getentropy, getentropy);