mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-21 00:10:20 +03:00
sys-apps/iproute2: Add missing limits.h include to bridge/mdb.c
Fixes build on musl. Signed-off-by: Violet Purcell <vimproved@inventati.org> Closes: https://github.com/gentoo/gentoo/pull/31646 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
80657549fd
commit
32765ef2ed
@@ -0,0 +1,22 @@
|
||||
From https://github.com/shemminger/iproute2/pull/69/commits/030013c4b9ba032869f72b766e28eaf8c8099f36 Mon Sep 17 00:00:00 2001
|
||||
From: Violet Purcell <vimproved@inventati.org>
|
||||
Date: Tue, 27 Jun 2023 18:58:05 +0000
|
||||
Subject: [PATCH] bridge: mdb: add missing limits.h include
|
||||
|
||||
Adding limits.h include for USHRT_MAX and ULONG_MAX. Don't rely on it
|
||||
being transitively include (as it is not on musl).
|
||||
|
||||
Signed-off-by: Violet Purcell <vimproved@inventati.org>
|
||||
--- a/bridge/mdb.c
|
||||
+++ b/bridge/mdb.c
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
+#include <limits.h>
|
||||
|
||||
#include "libnetlink.h"
|
||||
#include "utils.h"
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -52,6 +52,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.1.0-mtu.patch # bug #291907
|
||||
"${FILESDIR}"/${PN}-5.12.0-configure-nomagic.patch # bug #643722
|
||||
"${FILESDIR}"/${PN}-5.7.0-mix-signal.h-include.patch
|
||||
"${FILESDIR}"/${PN}-6.4.0-add-missing-limits.h-include.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user