Browse Source

apex: fix gcc 15.x issue

Waldemar Brodkorb 3 weeks ago
parent
commit
9f15a584ee

+ 15 - 0
package/apex/patches/patch-include_linux_stddef_h

@@ -0,0 +1,15 @@
+--- apex-main.orig/include/linux/stddef.h	2026-02-08 12:09:33.000000000 +0100
++++ apex-main/include/linux/stddef.h	2026-02-08 12:19:50.027737821 +0100
+@@ -12,10 +12,12 @@
+ 
+ #ifdef __KERNEL__
+ 
++/*
+ enum {
+ 	false	= 0,
+ 	true	= 1
+ };
++*/
+ 
+ #undef offsetof
+ #ifdef __compiler_offsetof

+ 11 - 0
package/apex/patches/patch-include_linux_types_h

@@ -0,0 +1,11 @@
+--- apex-main.orig/include/linux/types.h	2026-02-08 12:09:33.000000000 +0100
++++ apex-main/include/linux/types.h	2026-02-08 12:20:47.195333594 +0100
+@@ -30,7 +30,7 @@ typedef __kernel_clockid_t	clockid_t;
+ typedef __kernel_mqd_t		mqd_t;
+ 
+ #ifdef __KERNEL__
+-typedef _Bool			bool;
++//typedef _Bool			bool;
+ 
+ typedef __kernel_uid32_t	uid_t;
+ typedef __kernel_gid32_t	gid_t;