Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | iproute2: fix building with musl |
| 2 | |
| 3 | We need limits.h for PATH_MAX, fixes: |
| 4 | |
| 5 | rt_names.c:364:13: error: ‘PATH_MAX’ undeclared (first use in this |
| 6 | function) |
| 7 | |
| 8 | Upstream-Status: Backport |
| 9 | |
| 10 | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> |
| 11 | Signed-off-by: Maxin B. John <maxin.john@intel.com> |
| 12 | --- |
| 13 | diff --git a/lib/rt_names.c b/lib/rt_names.c |
| 14 | index f6d17c0..b665d3e 100644 |
| 15 | --- a/lib/rt_names.c |
| 16 | +++ b/lib/rt_names.c |
| 17 | @@ -18,6 +18,7 @@ |
| 18 | #include <sys/time.h> |
| 19 | #include <sys/socket.h> |
| 20 | #include <dirent.h> |
| 21 | +#include <limits.h> |
| 22 | |
| 23 | #include <asm/types.h> |
| 24 | #include <linux/rtnetlink.h> |