diff --git a/gfx/gfx_common.h b/gfx/gfx_common.h index 9a21f8ade9..3291b70f15 100644 --- a/gfx/gfx_common.h +++ b/gfx/gfx_common.h @@ -26,7 +26,7 @@ bool gfx_window_title(char *buf, size_t size); void gfx_window_title_reset(void); -#ifdef HAVE_X11 +#if defined(HAVE_X11) && !defined(__APPLE__) #include void gfx_suspend_screensaver(Window wnd); #endif diff --git a/gfx/sdl_gfx.c b/gfx/sdl_gfx.c index 88c58a9959..bac137d603 100644 --- a/gfx/sdl_gfx.c +++ b/gfx/sdl_gfx.c @@ -289,7 +289,7 @@ static void *sdl_gfx_init(const video_info_t *video, const input_driver_t **inpu SDL_ShowCursor(SDL_DISABLE); -#ifdef HAVE_X11 +#if defined(HAVE_X11) && !defined(__APPLE__) RARCH_LOG("Suspending screensaver (X11).\n"); SDL_SysWMinfo wm_info; SDL_VERSION(&wm_info.version);