forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-libs/libraw: fix build failure against glibc-2.27, bug #647556
Closes: https://bugs.gentoo.org/647556 Package-Manager: Portage-2.3.24, Repoman-2.3.6
- Loading branch information
Sergei Trofimovich
committed
Feb 18, 2018
1 parent
754dfca
commit 23a185e
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Fix build failure on glibc-2.27 caused by pow64 symbol collision. | ||
|
||
https://github.com/LibRaw/LibRaw/pull/115 | ||
https://bugs.gentoo.org/647556 | ||
diff --git a/internal/dcraw_common.cpp b/internal/dcraw_common.cpp | ||
index 18bcdbc..8cec744 100644 | ||
--- a/internal/dcraw_common.cpp | ||
+++ b/internal/dcraw_common.cpp | ||
@@ -5770,4 +5770,5 @@ static float powf_lim(float a, float b, float limup) | ||
return (b>limup || b < -limup)?0.f:powf(a,b); | ||
} | ||
+#define powf64 powf_lim64 /* workaround symbol collision */ | ||
static float powf64(float a, float b) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters