--- /dev/null
+POSIX requires <limits.h> for PATH_MAX and NAME_MAX
+
+Author: Anthony G. Basile <blueness@gentoo.org>
+
+diff -Naur net-snmp-5.7.3.orig/agent/mibgroup/util_funcs/get_pid_from_inode.c net-snmp-5.7.3/agent/mibgroup/util_funcs/get_pid_from_inode.c
+--- net-snmp-5.7.3.orig/agent/mibgroup/util_funcs/get_pid_from_inode.c 2014-12-08 15:23:22.000000000 -0500
++++ net-snmp-5.7.3/agent/mibgroup/util_funcs/get_pid_from_inode.c 2018-02-21 15:34:06.237028136 -0500
+@@ -6,6 +6,7 @@
+
+ #include <ctype.h>
+ #include <stdio.h>
++#include <limits.h>
+ #if HAVE_STDLIB_H
+ #include <stdlib.h>
+ #endif
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
epatch "${WORKDIR}"/${P}-perl524.patch
epatch "${WORKDIR}"/${P}-perl524-2.patch
+ epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
epatch "${WORKDIR}"/patches/*.patch
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
epatch "${WORKDIR}"/${P}-perl524.patch
epatch "${WORKDIR}"/${P}-perl524-2.patch
+ epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
epatch "${WORKDIR}"/patches/*.patch
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
eapply "${WORKDIR}"/${PN}-5.7.3-perl524.patch
eapply "${FILESDIR}"/${PN}-5.7.3-perl524-2.patch
eapply "${FILESDIR}"/${PN}-5.7.3-mariadb-10.2.patch
+ eapply "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
eapply "${WORKDIR}"/patches/*.patch