djpohly/dwl

dwl build fails on musl

Closed this issue · 0 comments

Hi,
I am on a musl based distro.
The build fails witht the following:

/downloads/dwl$ ➜  make
cc -O3 -pipe -march=native -Werror -I. -DWLR_USE_UNSTABLE -I/usr/include/libdrm -I/usr/include/pixman-1      -c -o dwl.o dwl.c
In file included from dwl.c:11:
/usr/include/sys/signal.h:1:2: error: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Werror=cpp]
    1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h>
      |  ^~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: dwl.o] Error 1

Greetings.

Edit: This can be fixed by changing #include <sys/signal.h> to #include <signal.h> in dwl.c