SDL: Fix compilation on loongarch

From ed5d3d9f8279a78717aa3a43ef498af724791b87 Mon Sep 17 00:00:00 2001
From: yuanhecai <[EMAIL REDACTED]>
Date: Sun, 21 Jan 2024 12:42:18 +0800
Subject: [PATCH] Fix compilation on loongarch

---
 CMakeLists.txt                  | 4 ++--
 src/video/yuv2rgb/yuv_rgb_lsx.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50282ed1cd29..84e8ea28742b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -911,7 +911,7 @@ if(SDL_ASSEMBLY)
 
     if(SDL_LSX)
       cmake_push_check_state()
-      list(APPEND CMAKE_REQUIRED_FLAGS "-mlsx")
+      set(CMAKE_REQUIRED_FLAGS "-mlsx")
       check_c_source_compiles("
           #ifndef __loongarch_sx
           #error Assembler CPP flag not enabled
@@ -928,7 +928,7 @@ if(SDL_ASSEMBLY)
 
     if(SDL_LASX)
       cmake_push_check_state()
-      list(APPEND CMAKE_REQUIRED_FLAGS "-mlasx")
+      set(CMAKE_REQUIRED_FLAGS "-mlasx")
       check_c_source_compiles("
           #ifndef __loongarch_asx
           #error Assembler CPP flag not enabled
diff --git a/src/video/yuv2rgb/yuv_rgb_lsx.c b/src/video/yuv2rgb/yuv_rgb_lsx.c
index 8d84dd142aa1..f24a05276d20 100644
--- a/src/video/yuv2rgb/yuv_rgb_lsx.c
+++ b/src/video/yuv2rgb/yuv_rgb_lsx.c
@@ -4,7 +4,7 @@
 
 #if SDL_HAVE_YUV
 #include "yuv_rgb.h"
-
+#include "yuv_rgb_internal.h"
 #include "SDL_cpuinfo.h"
 
 #ifdef __loongarch_sx