Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1677639
| From | Baruch Siach <baruch@tkos.co.il> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] trace-listen: add missing header |
| Date | 2017-06-29 13:50 +0200 |
| Message-ID | <tXG7n-71O-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The PATH_MAX macro requires the limits.h header. This fixes build with musl
libc:
.../trace-cmd-trace-cmd-v2.6.1/trace-listen.c: In function ‘make_pid_name’:
.../trace-cmd-trace-cmd-v2.6.1/trace-listen.c:167:16: error: ‘PATH_MAX’ undeclared (first use in this function)
snprintf(buf, PATH_MAX, VAR_RUN_DIR "/trace-cmd-net.pid");
^~~~~~~~
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
trace-listen.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/trace-listen.c b/trace-listen.c
index 17ff9d8c160c..838d6bcf3649 100644
--- a/trace-listen.c
+++ b/trace-listen.c
@@ -31,6 +31,7 @@
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
+#include <limits.h>
#include "trace-local.h"
#include "trace-msg.h"
--
2.11.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] trace-listen: add missing header Baruch Siach <baruch@tkos.co.il> - 2017-06-29 13:50 +0200
Re: [PATCH] trace-listen: add missing header Steven Rostedt <rostedt@goodmis.org> - 2017-06-29 14:30 +0200
Re: [PATCH] trace-listen: add missing header Baruch Siach <baruch@tkos.co.il> - 2017-06-29 14:40 +0200
Re: [PATCH] trace-listen: add missing header Steven Rostedt <rostedt@goodmis.org> - 2017-06-29 15:00 +0200
csiph-web