Commit be937fa8 authored by Baruch Siach's avatar Baruch Siach Committed by Thomas Petazzoni
Browse files
parent 3372b316
From c68c868b573acc73e144312326750be2ed96632f Mon Sep 17 00:00:00 2001
From: Baruch Siach <>
Date: Thu, 29 Jun 2017 14:43:19 +0300
Subject: [PATCH] trace-listen: add missing header
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The PATH_MAX macro requires the limits.h header. This fixes build with musl
.../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 "/");
Signed-off-by: Baruch Siach <>
Upstream status:
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"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment