$NetBSD: patch-CMakeLists.txt,v 1.2 2022/11/14 18:44:05 adam Exp $

Don't implement sys/regset.h workaround, fix source instead.

--- CMakeLists.txt.orig	2026-03-23 18:46:22.000000000 +0000
+++ CMakeLists.txt
@@ -1290,7 +1290,6 @@ endif()
 
 if( "${CMAKE_SYSTEM_NAME}" MATCHES SunOS )
    # special hack for Solaris to handle crazy system sys/regset.h
-   include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")
 endif( "${CMAKE_SYSTEM_NAME}" MATCHES SunOS )
 
 # Make sure we don't get -rdynamic in every binary. For those that need it,
