21 Jan
2026
21 Jan
'26
10:08 p.m.
From: Simon Glass <simon.glass@canonical.com> Include <sort.h> instead of <stdlib.h> to get the proper qsort declaration. U-Boot's stdlib.h does not declare qsort, but sort.h does. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- include/linux/sort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/sort.h b/include/linux/sort.h index dc222d8dc89..f131be8d48c 100644 --- a/include/linux/sort.h +++ b/include/linux/sort.h @@ -6,7 +6,7 @@ #define _LINUX_SORT_H #include <linux/types.h> -#include <stdlib.h> +#include <sort.h> typedef int (*cmp_func_t)(const void *, const void *); -- 2.43.0