b9d91cc03e54b06a4be8b92d8925c9a9d67e1343
[openwrt/staging/wigyori.git] / package / devel / trace-cmd / patches / 120-limits.patch
1 From 293ff6d5bc9d3b8bfbc3c57d20d3d2d00986c168 Mon Sep 17 00:00:00 2001
2 From: Alexander Couzens <lynxis@fe80.eu>
3 Date: Sun, 26 Nov 2017 05:22:51 +0100
4 Subject: [PATCH] trace-cmd listen: Include limits.h to define PATH_MAX
5
6 PATH_MAX is defined by limits.h. On some system it's also
7 defined by dirent.h but not on musl.
8
9 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
10 Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
11 ---
12 trace-listen.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 --- a/trace-listen.c
16 +++ b/trace-listen.c
17 @@ -23,6 +23,7 @@
18 #include <stdlib.h>
19 #include <string.h>
20 #include <getopt.h>
21 +#include <limits.h>
22 #include <sys/types.h>
23 #include <sys/socket.h>
24 #include <sys/wait.h>