From d4d66e77cc52e195438273d606ac26d2b9dfefc9 Mon Sep 17 00:00:00 2001
From: Brad Smith <[EMAIL REDACTED]>
Date: Sun, 18 Jan 2026 19:05:15 -0500
Subject: [PATCH] cmake: Replace sys/types.h usage with stdint.h with
CheckUSBHID
---
cmake/sdlchecks.cmake | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index abbd70ab52c32..e71ec1ed472f9 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -1141,7 +1141,7 @@ macro(CheckUSBHID)
string(APPEND CMAKE_REQUIRED_FLAGS " ${USB_CFLAGS}")
list(APPEND CMAKE_REQUIRED_LIBRARIES ${USB_LIBS})
check_c_source_compiles("
- #include <sys/types.h>
+ #include <stdint.h>
#if defined(HAVE_USB_H)
#include <usb.h>
#endif
@@ -1167,7 +1167,7 @@ macro(CheckUSBHID)
}" HAVE_USBHID)
if(HAVE_USBHID)
check_c_source_compiles("
- #include <sys/types.h>
+ #include <stdint.h>
#if defined(HAVE_USB_H)
#include <usb.h>
#endif
@@ -1195,7 +1195,7 @@ macro(CheckUSBHID)
endif()
check_c_source_compiles("
- #include <sys/types.h>
+ #include <stdint.h>
#if defined(HAVE_USB_H)
#include <usb.h>
#endif