iproute2: add missing limits.h includes
authorTony Ambardar <itugrok@yahoo.com>
Sat, 13 Mar 2021 04:58:28 +0000 (20:58 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 19 Mar 2021 14:30:01 +0000 (15:30 +0100)
commit10ffefe60299637bc592ec4ef0dde93e0e2e8344
tree95767403aaa4ac8bcfafe8d0467861f505589f3b
parent9662da770e9e1daa4c2ba78b4526c4b36a1358be
iproute2: add missing limits.h includes

This patch has been submitted upstream to fix an error reported by a few
users. One instance seen using gcc 10.2.0, binutils 2.35.1 and musl 1.1.24:

bpf_glue.c: In function 'get_libbpf_version':
bpf_glue.c:46:11: error: 'PATH_MAX' undeclared (first use in this function);
did you mean 'AF_MAX'?
   46 |  char buf[PATH_MAX], *s;
      |           ^~~~~~~~
      |           AF_MAX

Reported-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
package/network/utils/iproute2/patches/185-libbpf-add-limits-h.patch [new file with mode: 0644]