fix build when WSYSTYPE=wayland in local cfg

This commit is contained in:
Levi Neely 2025-04-13 17:25:38 +02:00 committed by Ethan Burns
parent 08a4f8abe4
commit abad9e2dec
3 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
if [ "x$1" = "xx11" ]; then if [ "x$1" = "xx11" -o "x$1" = "xwayland" ]; then
if [ "x$2" = "x" ]; then if [ "x$2" = "x" ]; then
i="-I/usr/include" i="-I/usr/include"
else else

View file

@ -48,7 +48,7 @@ echo 'WSYSTYPE='$WSYSTYPE
echo 'X11='$X11 echo 'X11='$X11
echo 'X11H='$X11H echo 'X11H='$X11H
if [ $WSYSTYPE = x11 ]; then if [ $WSYSTYPE = x11 -o $WSYSTYPE = wayland ]; then
echo 'CFLAGS=$CFLAGS '$X11H echo 'CFLAGS=$CFLAGS '$X11H
echo 'HFILES=$HFILES $XHFILES' echo 'HFILES=$HFILES $XHFILES'
XO=`ls x11-*.c 2>/dev/null | sed 's/\.c$/.o/'` XO=`ls x11-*.c 2>/dev/null | sed 's/\.c$/.o/'`

View file

@ -0,0 +1 @@
#include "x11.c"