iucode-tool: fix compile error with musl libc and USE_CPUID_DEVICE
[openwrt/openwrt.git] / package / system / iucode-tool / patches / 001-iucode_tool-add-missing-limits.h-for-USE_CPUID_DEVIC.patch
1 From e1137cdafc97c0a8b2a0717a771823f3c4320087 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Tue, 29 Nov 2022 19:37:03 +0100
4 Subject: [PATCH] iucode_tool: add missing limits.h for USE_CPUID_DEVICE
5
6 If USE_CPUID_DEVICE is enabled, compilation fails for missing define.
7 Add the missing include to fix compilation error with USE_CPUID_DEVICE
8 define.
9
10 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
11 ---
12 iucode_tool.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 diff --git a/iucode_tool.c b/iucode_tool.c
16 index 4bba5db..0246035 100644
17 --- a/iucode_tool.c
18 +++ b/iucode_tool.c
19 @@ -19,6 +19,7 @@
20 #include <stdint.h>
21 #include <sys/types.h>
22 #include <sys/stat.h>
23 +#include <limits.h>
24 #include <fcntl.h>
25 #include <stdio.h>
26 #include <stdlib.h>
27 --
28 2.37.2
29