[oe-commits] Wang Zidan : alsa-lib: pcm_local.h: include <time.h> to enable CLOCK_MONOTONIC
git at git.openembedded.org
git at git.openembedded.org
Wed Aug 6 09:03:51 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 77b4d82687e7d65e8c6619c36d337b1d5763fc36
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=77b4d82687e7d65e8c6619c36d337b1d5763fc36
Author: Wang Zidan <b50113 at freescale.com>
Date: Mon Aug 4 11:21:11 2014 +0800
alsa-lib: pcm_local.h: include <time.h> to enable CLOCK_MONOTONIC
CLOCK_MONITONIC is defined in <bits/time.h>, add <time.h> before <sys/time.h>.
Signed-off-by: Wang Zidan <b50113 at freescale.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
...al.h-include-time.h-to-enable-CLOCK_MONOT.patch | 32 ++++++++++++++++++++++
meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb | 1 +
2 files changed, 33 insertions(+)
diff --git a/meta/recipes-multimedia/alsa/alsa-lib/0001-pcm-pcm_local.h-include-time.h-to-enable-CLOCK_MONOT.patch b/meta/recipes-multimedia/alsa/alsa-lib/0001-pcm-pcm_local.h-include-time.h-to-enable-CLOCK_MONOT.patch
new file mode 100755
index 0000000..06cdcb9
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-lib/0001-pcm-pcm_local.h-include-time.h-to-enable-CLOCK_MONOT.patch
@@ -0,0 +1,32 @@
+From f6b879e7cc87d83343f5004369146881d1d1e335 Mon Sep 17 00:00:00 2001
+From: Shengjiu Wang <shengjiu.wang at freescale.com>
+Date: Wed, 23 Jul 2014 15:09:58 +0800
+Subject: [PATCH] pcm: pcm_local.h: include <time.h> to enable CLOCK_MONOTONIC
+
+CLOCK_MONITONIC is defined in <bits/time.h>, add <time.h> before <sys/time.h>.
+
+Commit f6b879e7cc87d83343f5004369146881d1d1e335 in master branch
+
+Upstream Status: Backported
+
+Signed-off-by: Shengjiu Wang <shengjiu.wang at freescale.com>
+Signed-off-by: Takashi Iwai <tiwai at suse.de>
+---
+ src/pcm/pcm_local.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/pcm/pcm_local.h b/src/pcm/pcm_local.h
+index 2206afe..80bbe59 100644
+--- a/src/pcm/pcm_local.h
++++ b/src/pcm/pcm_local.h
+@@ -24,6 +24,7 @@
+ #include <stdlib.h>
+ #include <limits.h>
+ #include <sys/uio.h>
++#include <time.h>
+ #include <sys/time.h>
+
+ #define _snd_mask sndrv_mask
+--
+1.7.9.5
+
diff --git a/meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb b/meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb
index cce5521..fc0847d 100644
--- a/meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb
+++ b/meta/recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb
@@ -20,6 +20,7 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PV}.tar.bz2 \
file://Update-iatomic.h-functions-definitions-for-mips.patch \
file://0001-pcm-route-Use-get32-for-multi-source-route-calculati.patch \
file://0001-pcm-rate-fix-hw_ptr-exceed-the-boundary.patch \
+ file://0001-pcm-pcm_local.h-include-time.h-to-enable-CLOCK_MONOT.patch \
"
SRC_URI[md5sum] = "69129a7c37697f81ac092335e9fa452b"
SRC_URI[sha256sum] = "690ed393e7efd4fc7e3a2d2cda5449298ca0c895197e5914e350882012430d19"
More information about the Openembedded-commits
mailing list