Add a workaround for some libc's...

...with regards to `-fblocks`. They try to use `__block` as a variable name (which is illegal with `-fblocks`).

Should fix darlinghq/darling#931.
This commit is contained in:
Ariel Abreu 2021-02-17 21:51:50 -05:00
parent 9fef19abd9
commit 7c3ba59c54
No known key found for this signature in database
GPG Key ID: BB20848279B910AC

4
cctools/include/unistd.h Normal file
View File

@ -0,0 +1,4 @@
// workaround for some libc's that try to use `__block` as a variable name
#undef __block
#include_next <unistd.h>
#define __block __attribute__((__blocks__(byref)))