in case backend is not X

This commit is contained in:
kanjitalk755 2020-02-07 11:04:02 +09:00
parent c23967b03b
commit 1a875b1c10
4 changed files with 9 additions and 5 deletions

View File

@ -21,7 +21,7 @@ CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
CPUINCLUDES_FLAGS=@CPUINCLUDES@
CPUINCLUDES_FLAGS:=$(CPUINCLUDES_FLAGS:-I%=-I@top_srcdir@/%)
CPPFLAGS = @CPPFLAGS@ -I@top_srcdir@/../include -I@top_srcdir@/. -I. -I@top_srcdir@/../CrossPlatform $(CPUINCLUDES_FLAGS) -I@top_srcdir@/../slirp
CPPFLAGS = @CPPFLAGS@ -I/opt/X11/include -I@top_srcdir@/../include -I@top_srcdir@/. -I. -I@top_srcdir@/../CrossPlatform $(CPUINCLUDES_FLAGS) -I@top_srcdir@/../slirp
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

View File

@ -63,7 +63,9 @@ struct sigstate {
# ifdef HAVE_GNOMEUI
# include <gnome.h>
# endif
# include <X11/Xlib.h>
# ifndef GDK_WINDOWING_WAYLAND
# include <X11/Xlib.h>
# endif
#endif
#ifdef ENABLE_XF86_DGA
@ -385,7 +387,7 @@ static void usage(const char *prg_name)
int main(int argc, char **argv)
{
#ifdef ENABLE_GTK
#if defined(ENABLE_GTK) && !defined(GDK_WINDOWING_WAYLAND)
XInitThreads();
#endif
const char *vmdir = NULL;

View File

@ -17,7 +17,7 @@ CC = @CC@
CXX = @CXX@
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
CPPFLAGS = @CPPFLAGS@ -I../include -I. -I../CrossPlatform -I../slirp
CPPFLAGS = @CPPFLAGS@ -I/opt/X11/include -I../include -I. -I../CrossPlatform -I../slirp
DEFS = @DEFS@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

View File

@ -133,8 +133,10 @@
#ifdef ENABLE_GTK
#include <gtk/gtk.h>
#ifndef GDK_WINDOWING_WAYLAND
#include <X11/Xlib.h>
#endif
#endif
#ifdef ENABLE_XF86_DGA
#include <X11/Xlib.h>
@ -729,7 +731,7 @@ static bool init_sdl()
int main(int argc, char **argv)
{
#ifdef ENABLE_GTK
#if defined(ENABLE_GTK) && !defined(GDK_WINDOWING_WAYLAND)
XInitThreads();
#endif
char str[256];