Greetings,
I am on a musl based distro and wyebadblock fails to build with the following:
/tmp/wyebadblock$ ➜ make
cc -O3 -pipe -march=native -c -o librun.o wyebrun.c -fPIC\
`pkg-config --cflags --libs glib-2.0` \
-DDEBUG=0
cc -O3 -pipe -march=native -o testrun wyebrun.c \
`pkg-config --cflags --libs glib-2.0 gio-2.0` \
-DDEBUG=0 -DTESTER=1
wyebrun.c: In function 'ipcsend':
wyebrun.c: In function 'ipcsend':
wyebrun.c:97:11: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
97 | int pp = open(path, O_WRONLY | O_NONBLOCK);
| ^~~~
| popen
wyebrun.c:97:11: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
97 | int pp = open(path, O_WRONLY | O_NONBLOCK);
| ^~~~
| popen
wyebrun.c:97:22: error: 'O_WRONLY' undeclared (first use in this function)
97 | int pp = open(path, O_WRONLY | O_NONBLOCK);
| ^~~~~~~~
wyebrun.c:97:22: note: each undeclared identifier is reported only once for each function it appears in
wyebrun.c:97:22: error: 'O_WRONLY' undeclared (first use in this function)
97 | int pp = open(path, O_WRONLY | O_NONBLOCK);
| ^~~~~~~~
wyebrun.c:97:22: note: each undeclared identifier is reported only once for each function it appears in
wyebrun.c:97:33: error: 'O_NONBLOCK' undeclared (first use in this function); did you mean 'G_UNLOCK'?
97 | int pp = open(path, O_WRONLY | O_NONBLOCK);
| ^~~~~~~~~~
| G_UNLOCK
wyebrun.c:97:33: error: 'O_NONBLOCK' undeclared (first use in this function); did you mean 'G_UNLOCK'?
97 | int pp = open(path, O_WRONLY | O_NONBLOCK);
| ^~~~~~~~~~
| G_UNLOCK
wyebrun.c:103:4: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration]
103 | fcntl(pp, F_SETFL, 0); //clear O_NONBLOCK to write len > 65536;
| ^~~~~
wyebrun.c:103:4: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration]
103 | fcntl(pp, F_SETFL, 0); //clear O_NONBLOCK to write len > 65536;
| ^~~~~
wyebrun.c:103:14: error: 'F_SETFL' undeclared (first use in this function)
103 | fcntl(pp, F_SETFL, 0); //clear O_NONBLOCK to write len > 65536;
| ^~~~~~~
wyebrun.c:103:14: error: 'F_SETFL' undeclared (first use in this function)
103 | fcntl(pp, F_SETFL, 0); //clear O_NONBLOCK to write len > 65536;
| ^~~~~~~
wyebrun.c: In function 'request':
wyebrun.c:386:25: error: 'O_RDONLY' undeclared (first use in this function)
386 | int lock = open(path, O_RDONLY | O_CREAT, S_IRUSR);
| ^~~~~~~~
wyebrun.c: In function 'request':
wyebrun.c:386:25: error: 'O_RDONLY' undeclared (first use in this function)
386 | int lock = open(path, O_RDONLY | O_CREAT, S_IRUSR);
| ^~~~~~~~
wyebrun.c:386:36: error: 'O_CREAT' undeclared (first use in this function)
386 | int lock = open(path, O_RDONLY | O_CREAT, S_IRUSR);
| ^~~~~~~
wyebrun.c:386:36: error: 'O_CREAT' undeclared (first use in this function)
386 | int lock = open(path, O_RDONLY | O_CREAT, S_IRUSR);
| ^~~~~~~
make: *** [makefile:25: librun.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [makefile:30: testrun] Error 1
Greetings, I am on a musl based distro and wyebadblock fails to build with the following: