diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-01-30 09:31:40 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-07 22:40:55 +0100 |
commit | 5f3aed3f50ff48c8a60185407d7220aeedfea5e5 (patch) | |
tree | d8192dbabeae0e0f2386127729d432ac0bb765e6 /package/musepack/0003-include-fpu-control-with-glibc-only.patch | |
parent | b5ad2ce5a35a7909307de806b9606c560b5cb85d (diff) | |
download | buildroot-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/0003-include-fpu-control-with-glibc-only.patch')
-rw-r--r-- | package/musepack/0003-include-fpu-control-with-glibc-only.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/musepack/0003-include-fpu-control-with-glibc-only.patch b/package/musepack/0003-include-fpu-control-with-glibc-only.patch new file mode 100644 index 0000000000..6f50155781 --- /dev/null +++ b/package/musepack/0003-include-fpu-control-with-glibc-only.patch @@ -0,0 +1,26 @@ +Include <fpu_control.h> only on glibc systems + +The <fpu_control.h> header provides _FPU_*() macros, which the +Init_FPU() function uses only on i386, and only when they are +defined. Since <fpu_control.h> is not available, this causes a build +failure with C libraries such as musl. By simply including +<fpu_control.h> explicitly on glibc systems, we avoid the build +failure, since mpcenc.c already conditionally uses the <fpu_control.h> +macros only if they are defined. + +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> +[Thomas: better commit log.] +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> + +diff -uNr musepack_src_r475.org/mpcenc/mpcenc.h musepack_src_r475/mpcenc/mpcenc.h +--- musepack_src_r475.org/mpcenc/mpcenc.h 2009-02-23 19:15:46.000000000 +0100 ++++ musepack_src_r475/mpcenc/mpcenc.h 2016-01-30 09:29:08.000000000 +0100 +@@ -50,7 +51,7 @@ + # include <unistd.h> + #endif + +-#if defined __linux__ ++#if defined __GLIBC__ + # include <fpu_control.h> + #elif defined __FreeBSD__ + # include <machine/floatingpoint.h> |