Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766AbdF2Lqz (ORCPT ); Thu, 29 Jun 2017 07:46:55 -0400 Received: from guitar.tcltek.co.il ([192.115.133.116]:55821 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbdF2Lqi (ORCPT ); Thu, 29 Jun 2017 07:46:38 -0400 From: Baruch Siach To: Steven Rostedt , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Baruch Siach Subject: [PATCH] trace-listen: add missing header Date: Thu, 29 Jun 2017 14:46:21 +0300 Message-Id: X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 763 Lines: 27 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 --- 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 #include #include +#include #include "trace-local.h" #include "trace-msg.h" -- 2.11.0