Hi @ngn. I tried compiling ngn/k on Alpine inside Docker running on macOS and got this error:
i.c i.c:28:44: fatal error: variable has incomplete type 'struct stat'
S I dir(A x)_(I f=op_(xR,O_RDONLY);ST stat s;Iv=fstat(f,&s);v=v>=0&&!!(s.st_mode&S_IFDIR);close(f);v)
^
Adding `#include<sys/stat.h>` to `i.c` fixed it. Maybe it's something related to Alpine, but just wanted to let you know in case you have any idea why this happened.
i.c i.c:28:44: fatal error: variable has incomplete type 'struct stat'
S I dir(A x)_(I f=op_(xR,O_RDONLY);ST stat s;Iv=fstat(f,&s);v=v>=0&&!!(s.st_mode&S_IFDIR);close(f);v)
^
Adding `#include<sys/stat.h>` to `i.c` fixed it. Maybe it's something related to Alpine, but just wanted to let you know in case you have any idea why this happened.