From 19033a4a39acba60c9d7de135362a70dcfc20a51 Mon Sep 17 00:00:00 2001 From: kanjitalk755 Date: Sat, 1 Feb 2020 20:44:32 +0900 Subject: [PATCH] same fix for SS --- SheepShaver/src/Unix/configure.ac | 3 +++ SheepShaver/src/Unix/main_unix.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/SheepShaver/src/Unix/configure.ac b/SheepShaver/src/Unix/configure.ac index 81ffbdd4..7c546e27 100755 --- a/SheepShaver/src/Unix/configure.ac +++ b/SheepShaver/src/Unix/configure.ac @@ -764,6 +764,9 @@ if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then CPPFLAGS="$CPPFLAGS -I../MacOSX" else EXTRASYSSRCS="$EXTRASYSSRCS ../dummy/clip_dummy.cpp" + if [[ "$WANT_GTK" != "no" ]]; then + LIBS="$LIBS -lX11" + fi fi else VIDEOSRCS="video_x.cpp" diff --git a/SheepShaver/src/Unix/main_unix.cpp b/SheepShaver/src/Unix/main_unix.cpp index 34c104cc..ad352607 100755 --- a/SheepShaver/src/Unix/main_unix.cpp +++ b/SheepShaver/src/Unix/main_unix.cpp @@ -133,6 +133,7 @@ #ifdef ENABLE_GTK #include +#include #endif #ifdef ENABLE_XF86_DGA @@ -728,6 +729,9 @@ static bool init_sdl() int main(int argc, char **argv) { +#ifdef ENABLE_GTK + XInitThreads(); +#endif char str[256]; bool memory_mapped_from_zero, ram_rom_areas_contiguous; const char *vmdir = NULL;