From b3bcee1e77edbf4368e0b668401bfa5c18853706 Mon Sep 17 00:00:00 2001 From: Ploo <239304139+xinitrcn1@users.noreply.github.com> Date: Fri, 24 Apr 2026 23:05:33 +0000 Subject: [PATCH] Update sdlchecks.cmake --- cmake/sdlchecks.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 3f682d9854..ea80e91dfe 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -528,10 +528,8 @@ macro(CheckX11) XFreeEventData(display, cookie); return 0; }" HAVE_XGENERICEVENT) - # In OmniOS pkgsrc, XGenericEventCookie is defined as "typedef struct { ... } XGenericEventCookie;" - # which differs from every other implementation where it's - # "typedef struct XGenericEventCookie { ... } XGenericEventCookie;" - if(HAVE_XGENERICEVENT AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "SunOS") + # In OmniOS pkgsrc, XGenericEventCookie is defined, but fails to compile due to unrelated circumstances + if(HAVE_XGENERICEVENT OR ${CMAKE_SYSTEM_NAME} STREQUAL "SunOS") set(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1) endif()