File 0007-pulse-Define-a-dummy-PA_CHECK_VERSION-when-not-avail.patch of Package alsa-plugins
From 83d5f81b7fb873dfe603356ee5b97b1381a4d5ec Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Fri, 26 Aug 2011 09:43:11 +0200
Subject: [PATCH] pulse - Define a dummy PA_CHECK_VERSION() when not available
An old version of PA doesn't define this macro, and gives a build error.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
pulse/pcm_pulse.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c
index b0e52ab..e0fbd4c 100644
--- a/pulse/pcm_pulse.c
+++ b/pulse/pcm_pulse.c
@@ -587,7 +587,11 @@ static void stream_request_cb(pa_stream * p, size_t length, void *userdata)
update_active(pcm);
}
-#if defined(PA_CHECK_VERSION) && PA_CHECK_VERSION(0,99,0)
+#ifndef PA_CHECK_VERSION
+#define PA_CHECK_VERSION(x, y, z) 0
+#endif
+
+#if PA_CHECK_VERSION(0,99,0)
#define DEFAULT_HANDLE_UNDERRUN 1
#define do_underrun_detect(pcm, p) \
((pcm)->written <= pa_stream_get_underflow_index(p))
--
1.7.6.1