imx-gst1.0-plugin: fix build using MUSL C library

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2020-01-02 17:03:40 +01:00
parent a5d6f02ea0
commit da46ed4a07
2 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,36 @@
From: Javier Viguera <javier.viguera@digi.com>
Date: Thu, 2 Jan 2020 16:49:51 +0100
Subject: [PATCH] imx-gst1.0-plugin: fix build using MUSL C library
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
---
tools/gplay2/gplay2.c | 1 -
tools/grecorder/grecorder.c | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/gplay2/gplay2.c b/tools/gplay2/gplay2.c
index 3fa056a86307..a6e5db5535d2 100755
--- a/tools/gplay2/gplay2.c
+++ b/tools/gplay2/gplay2.c
@@ -26,7 +26,6 @@
*/
-#include <termio.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
diff --git a/tools/grecorder/grecorder.c b/tools/grecorder/grecorder.c
index 1fec19f900fe..dc912d36e056 100644
--- a/tools/grecorder/grecorder.c
+++ b/tools/grecorder/grecorder.c
@@ -24,7 +24,9 @@
#include <pthread.h>
#include <signal.h>
#include <getopt.h>
+#include <unistd.h>
#define __USE_LARGEFILE64
+#define _GNU_SOURCE # For MUSL statvfs64
#include <sys/statvfs.h>
#include "recorder_engine.h"

View File

@ -1,6 +1,9 @@
# Copyright (C) 2016-2018 Digi International
# Copyright (C) 2016-2020 Digi International Inc.
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
SRC_URI += "file://0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch"
SRC_URI += " \
file://0001-gstimxv4l2-map-dev-video1-to-dev-fb0.patch \
file://0002-imx-gst1.0-plugin-fix-build-using-MUSL-C-library.patch \
"
SRC_URI_append_ccimx6 = " file://0002-imx_2d_device_g2d-define-a-G2D_AMPHION_INTERLACED-ma.patch"