openwrt/package/system/iucode-tool/patches/001-iucode_tool-add-missing-limits.h-for-USE_CPUID_DEVIC.patch
Rosen Penev 2f4bb69664 packages: refresh patches
CI is supposed to catch all of these. Some of these predate CI.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-31 11:30:06 +02:00

25 lines
701 B
Diff

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(+)
--- 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>