summaryrefslogtreecommitdiffstats
path: root/package/musepack/0004-missing-sys-select.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-01-30 09:31:40 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-07 22:40:55 +0100
commit5f3aed3f50ff48c8a60185407d7220aeedfea5e5 (patch)
treed8192dbabeae0e0f2386127729d432ac0bb765e6 /package/musepack/0004-missing-sys-select.patch
parentb5ad2ce5a35a7909307de806b9606c560b5cb85d (diff)
downloadbuildroot-5f3aed3f50ff48c8a60185407d7220aeedfea5e5.tar.gz
buildroot-5f3aed3f50ff48c8a60185407d7220aeedfea5e5.zip
package/musepack: fix musl build
This commit adds two patches needed to fix musl related build issues in musepack: a missing <sys/select.h> inclusion, and an inclusion of <fpu_control.h> that should be made conditional on __GLIBC__. Fixes: http://autobuild.buildroot.net/results/6eb/6ebc9cbee3fc48f4f5b658d11b040ad62fb6607f/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: split the patch in two patches, add proper patch description.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/musepack/0004-missing-sys-select.patch')
-rw-r--r--package/musepack/0004-missing-sys-select.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/musepack/0004-missing-sys-select.patch b/package/musepack/0004-missing-sys-select.patch
new file mode 100644
index 0000000000..1e3a4b1140
--- /dev/null
+++ b/package/musepack/0004-missing-sys-select.patch
@@ -0,0 +1,21 @@
+Add missing <sys/select.h> include
+
+This header is needed when types like fd_set are used. This fixes a
+build issue occuring on the musl C library.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+[Thomas: better commit log.]
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/mpcenc/mpcenc.h
+===================================================================
+--- a/mpcenc/mpcenc.h
++++ b/mpcenc/mpcenc.h
+@@ -34,6 +34,7 @@
+ //// portable system includes //////////////////////////////////////
+ #include <stddef.h>
+ #include <math.h>
++#include <sys/select.h>
+
+ //// system dependent system includes //////////////////////////////
+ // low level I/O, where are prototypes and constants?
OpenPOWER on IntegriCloud