diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-31 10:25:27 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-31 10:25:27 +0000 |
commit | 0a8c5c2acd334e499247c6f3b629152797e16ccd (patch) | |
tree | ed3bde74c94e1775019622a50d803edaea50ec8a /testing/squeezelite/0001-only-run-glibc-specific-hacks-on-glibc.patch | |
parent | 1cd8f7c0b17413d5be6bb769f5287d10e327741a (diff) | |
download | aports-0a8c5c2acd334e499247c6f3b629152797e16ccd.tar.bz2 aports-0a8c5c2acd334e499247c6f3b629152797e16ccd.tar.xz |
testing/squeezelite: new aport
Diffstat (limited to 'testing/squeezelite/0001-only-run-glibc-specific-hacks-on-glibc.patch')
-rw-r--r-- | testing/squeezelite/0001-only-run-glibc-specific-hacks-on-glibc.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/squeezelite/0001-only-run-glibc-specific-hacks-on-glibc.patch b/testing/squeezelite/0001-only-run-glibc-specific-hacks-on-glibc.patch new file mode 100644 index 0000000000..5dbe25493c --- /dev/null +++ b/testing/squeezelite/0001-only-run-glibc-specific-hacks-on-glibc.patch @@ -0,0 +1,25 @@ +From d898fac929cd093bb39af3f517158777c21c06ef Mon Sep 17 00:00:00 2001 +From: Carlo Landmeter <clandmeter@gmail.com> +Date: Tue, 31 Mar 2015 10:07:14 +0000 +Subject: [PATCH] only run glibc specific hacks on glibc + +--- + output_alsa.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/output_alsa.c b/output_alsa.c +index aa01560..c1b5435 100644 +--- a/output_alsa.c ++++ b/output_alsa.c +@@ -853,7 +853,7 @@ void output_init_alsa(log_level level, const char *device, unsigned output_buf_s + set_mixer(output.device, volume_mixer_name, volume_mixer_index ? atoi(volume_mixer_index) : 0, true, 0, 0); + } + +-#if LINUX ++#if defined(__GLIBC__) + // RT linux - aim to avoid pagefaults by locking memory: + // https://rt.wiki.kernel.org/index.php/Threaded_RT-application_with_memory_locking_and_stack_handling_example + if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1) { +-- +2.3.4 + |