diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-11-29 19:39:04 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-12-04 13:21:46 +0100 |
commit | ada4d0d0abefe776fb633a7d7974d766465940f5 (patch) | |
tree | 05ae49eac55671730aaddb395bf75d6d02867d27 /package/system/iucode-tool/patches | |
parent | a8f3c97ce83dc97cd7acb040a715ecd75d824161 (diff) | |
download | upstream-ada4d0d0abefe776fb633a7d7974d766465940f5.tar.gz upstream-ada4d0d0abefe776fb633a7d7974d766465940f5.tar.bz2 upstream-ada4d0d0abefe776fb633a7d7974d766465940f5.zip |
iucode-tool: fix compile error with musl libc and USE_CPUID_DEVICE
Add patch to fix compilation error with USE_CPUID_DEVICE enabled and musl
used as libc. Musl doesn't add limits.h header by default and this is
required if USE_CPUID_DEVICE is used.
The package currently compile because fortify headers include limits.h
by default.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'package/system/iucode-tool/patches')
-rw-r--r-- | package/system/iucode-tool/patches/001-iucode_tool-add-missing-limits.h-for-USE_CPUID_DEVIC.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/system/iucode-tool/patches/001-iucode_tool-add-missing-limits.h-for-USE_CPUID_DEVIC.patch b/package/system/iucode-tool/patches/001-iucode_tool-add-missing-limits.h-for-USE_CPUID_DEVIC.patch new file mode 100644 index 0000000000..ef9e5ab2f8 --- /dev/null +++ b/package/system/iucode-tool/patches/001-iucode_tool-add-missing-limits.h-for-USE_CPUID_DEVIC.patch @@ -0,0 +1,29 @@ +From e1137cdafc97c0a8b2a0717a771823f3c4320087 Mon Sep 17 00:00:00 2001 +From: Christian Marangi <ansuelsmth@gmail.com> +Date: Tue, 29 Nov 2022 19:37:03 +0100 +Subject: [PATCH] iucode_tool: add missing limits.h for USE_CPUID_DEVICE + +If USE_CPUID_DEVICE is enabled, compilation fails for missing define. +Add the missing include to fix compilation error with USE_CPUID_DEVICE +define. + +Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> +--- + iucode_tool.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/iucode_tool.c b/iucode_tool.c +index 4bba5db..0246035 100644 +--- a/iucode_tool.c ++++ b/iucode_tool.c +@@ -19,6 +19,7 @@ + #include <stdint.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <limits.h> + #include <fcntl.h> + #include <stdio.h> + #include <stdlib.h> +-- +2.37.2 + |