diff --git a/package/system/iucode-tool/patches/100_headers.patch b/package/system/iucode-tool/patches/100_headers.patch new file mode 100644 index 0000000000..4eb77e7cd9 --- /dev/null +++ b/package/system/iucode-tool/patches/100_headers.patch @@ -0,0 +1,10 @@ +--- a/iucode_tool.c ++++ b/iucode_tool.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/package/system/iucode-tool/patches/200_add-cpuid-compatibility-header-to-build-on-non-x86.patch b/package/system/iucode-tool/patches/200_add-cpuid-compatibility-header-to-build-on-non-x86.patch index 900f3596f8..6b340bb391 100644 --- a/package/system/iucode-tool/patches/200_add-cpuid-compatibility-header-to-build-on-non-x86.patch +++ b/package/system/iucode-tool/patches/200_add-cpuid-compatibility-header-to-build-on-non-x86.patch @@ -11,7 +11,7 @@ Signed-off-by: Sergey V. Lobanov --- /dev/null +++ b/cpuid-compat/cpuid.h -@@ -0,0 +1,17 @@ +@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * cpuid compatibility header to build iucode-tool on non-x86 hosts @@ -19,10 +19,6 @@ Signed-off-by: Sergey V. Lobanov + * Copyright (C) 2022 Sergey V. Lobanov + */ + -+#ifdef __APPLE__ -+# include -+#endif -+ +static __inline int __get_cpuid (unsigned int leaf, + unsigned int *eax, unsigned int *ebx, + unsigned int *ecx, unsigned int *edx)