babeltrace: Add missing header for MAXNAMLEN define

Fix bug exposed on musl

(From OE-Core rev: cc4f9860332300925d93e2607d675509fc002be4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2016-01-02 21:45:23 +00:00
committed by Richard Purdie
parent 245885063e
commit 9f40dba1fc
2 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
From 8331b87845cafdda40e59a682f2ca8120ed0c472 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 31 Dec 2015 08:17:40 +0000
Subject: [PATCH] lttng-live: Include sys/param.h for MAXNAMLEN defintion
exposed on musl based systems
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: pending
formats/lttng-live/lttng-live.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/formats/lttng-live/lttng-live.h b/formats/lttng-live/lttng-live.h
index 4ab641d..808ed2b 100644
--- a/formats/lttng-live/lttng-live.h
+++ b/formats/lttng-live/lttng-live.h
@@ -25,6 +25,7 @@
*/
#include <stdint.h>
+#include <sys/param.h>
#include "lttng-viewer-abi.h"
#define LTTNG_DEFAULT_NETWORK_VIEWER_PORT 5344
--
2.6.4

View File

@@ -6,14 +6,15 @@ BUGTRACKER = "https://bugs.lttng.org/projects/babeltrace"
LICENSE = "MIT & GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=76ba15dd76a248e1dd526bca0e2125fa"
inherit autotools pkgconfig
DEPENDS = "glib-2.0 util-linux popt bison-native flex-native"
inherit autotools pkgconfig
SRCREV = "6e2b9096c77138593097335b9b27202d98918089"
SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-1.3 \
file://0001-Fix-invalid-pointer-free-with-trace-collection.patch \
file://0001-lttng-live-Include-sys-param.h-for-MAXNAMLEN-definti.patch \
"
S = "${WORKDIR}/git"