mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-16 18:40:03 +00:00
net-snmp: Fix build issue found with musl
limits.h is needed for PATH_MAX and NAME_MAX Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
|||||||
|
From 7136d593ba96b64537069637c328bc65e1b66b2d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Fri, 22 Jul 2016 18:34:39 +0000
|
||||||
|
Subject: [PATCH] get_pid_from_inode: Include limit.h
|
||||||
|
|
||||||
|
PATH_MAX and NAME_MAX are required by this file
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
agent/mibgroup/util_funcs/get_pid_from_inode.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/agent/mibgroup/util_funcs/get_pid_from_inode.c b/agent/mibgroup/util_funcs/get_pid_from_inode.c
|
||||||
|
index 8e157ae..a494ec7 100644
|
||||||
|
--- a/agent/mibgroup/util_funcs/get_pid_from_inode.c
|
||||||
|
+++ b/agent/mibgroup/util_funcs/get_pid_from_inode.c
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#include <net-snmp/output_api.h>
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
+#include <limits.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#if HAVE_STDLIB_H
|
||||||
|
#include <stdlib.h>
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
@@ -23,6 +23,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.zip \
|
|||||||
file://0001-config_os_libs2-Error-Fix.patch \
|
file://0001-config_os_libs2-Error-Fix.patch \
|
||||||
file://0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch \
|
file://0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch \
|
||||||
file://net-snmp-agentx-crash.patch \
|
file://net-snmp-agentx-crash.patch \
|
||||||
|
file://0001-get_pid_from_inode-Include-limit.h.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "9f682bd70c717efdd9f15b686d07baee"
|
SRC_URI[md5sum] = "9f682bd70c717efdd9f15b686d07baee"
|
||||||
SRC_URI[sha256sum] = "e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafed07a3e"
|
SRC_URI[sha256sum] = "e8dfc79b6539b71a6ff335746ce63d2da2239062ad41872fff4354cafed07a3e"
|
||||||
|
|||||||
Reference in New Issue
Block a user