mirror of
https://github.com/darlinghq/cctools-port.git
synced 2025-02-16 23:28:02 +00:00
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:
parent
9fef19abd9
commit
7c3ba59c54
4
cctools/include/unistd.h
Normal file
4
cctools/include/unistd.h
Normal 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)))
|
Loading…
x
Reference in New Issue
Block a user