• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/musepack/0003-include-fpu-control-with-glibc-only.patch
Bernd KuhlsBernd Kuhls committed 5f3aed3f50f30 Jan 2016
Raw file
Source viewDiff to previous
 
1
Include <fpu_control.h> only on glibc systems
2
​
3
The <fpu_control.h> header provides _FPU_*() macros, which the
4
Init_FPU() function uses only on i386, and only when they are
5
defined. Since <fpu_control.h> is not available, this causes a build
6
failure with C libraries such as musl. By simply including
7
<fpu_control.h> explicitly on glibc systems, we avoid the build
8
failure, since mpcenc.c already conditionally uses the <fpu_control.h>
9
macros only if they are defined.
10
​
11
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
12
[Thomas: better commit log.]
13
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14
​
15
diff -uNr musepack_src_r475.org/mpcenc/mpcenc.h musepack_src_r475/mpcenc/mpcenc.h
16
--- musepack_src_r475.org/mpcenc/mpcenc.h   2009-02-23 19:15:46.000000000 +0100
17
+++ musepack_src_r475/mpcenc/mpcenc.h   2016-01-30 09:29:08.000000000 +0100
18
@@ -50,7 +51,7 @@
19
 # include <unistd.h>
20
 #endif
21
 
22
-#if   defined __linux__
23
+#if   defined __GLIBC__
24
 #  include <fpu_control.h>
25
 #elif defined __FreeBSD__
26
 # include <machine/floatingpoint.h>
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.