mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Closes: https://bugs.gentoo.org/967691 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From 6c1113633fde51b0e60f02243cfad1b3d09762cc Mon Sep 17 00:00:00 2001
|
|
From: Akhilesh Nema <nemaakhilesh@gmail.com>
|
|
Date: Tue, 2 Dec 2025 18:11:24 -0800
|
|
Subject: fix 'UINT_MAX' undeclared with build with musl libc
|
|
|
|
- utils_math.c:136:20: error: 'UINT_MAX' undeclared (first use in this function)
|
|
- tc_core.c:51:22: error: 'UINT_MAX' undeclared (first use in this function)
|
|
|
|
Signed-off-by: Akhilesh Nema <nemaakhilesh@gmail.com>
|
|
---
|
|
lib/utils_math.c | 1 +
|
|
tc/tc_core.c | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
diff --git a/lib/utils_math.c b/lib/utils_math.c
|
|
index a7e747440..fd2ddc7c7 100644
|
|
--- a/lib/utils_math.c
|
|
+++ b/lib/utils_math.c
|
|
@@ -4,6 +4,7 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <math.h>
|
|
+#include <limits.h>
|
|
#include <asm/types.h>
|
|
|
|
#include "utils.h"
|
|
diff --git a/tc/tc_core.c b/tc/tc_core.c
|
|
index a422e02c8..b13b7d78a 100644
|
|
--- a/tc/tc_core.c
|
|
+++ b/tc/tc_core.c
|
|
@@ -11,6 +11,7 @@
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <math.h>
|
|
+#include <limits.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
--
|
|
cgit 1.2.3-korg
|
|
|