File 0002-Fix-gcc-compile.patch of Package linux-lts510

--- a/include/linux/stddef.h	2025-05-02 01:41:22.000000000 -0400
+++ b/include/linux/stddef.h	2025-05-30 20:08:49.296043906 -0400
@@ -7,11 +7,6 @@
 #undef NULL
 #define NULL ((void *)0)
 
-enum {
-	false	= 0,
-	true	= 1
-};
-
 #undef offsetof
 #ifdef __compiler_offsetof
 #define offsetof(TYPE, MEMBER)	__compiler_offsetof(TYPE, MEMBER)
--- a/include/linux/types.h	2025-05-02 01:41:22.000000000 -0400
+++ b/include/linux/types.h	2025-05-30 20:08:44.006680953 -0400
@@ -27,7 +27,8 @@
 typedef __kernel_clockid_t	clockid_t;
 typedef __kernel_mqd_t		mqd_t;
 
-typedef _Bool			bool;
+#include <stdbool.h>
+typedef bool boolean;
 
 typedef __kernel_uid32_t	uid_t;
 typedef __kernel_gid32_t	gid_t;
openSUSE Build Service is sponsored by