diff options
author | 2016-09-28 20:57:21 +0900 | |
---|---|---|
committer | 2016-09-28 20:57:21 +0900 | |
commit | 7808fa178a26089ff2fc0c338a3e1835b290ffea (patch) | |
tree | 5c0ed322a3a07b6937d6406c785d218f008f57be /sys-freebsd/freebsd-lib/files/freebsd-lib-8.0-log2.patch | |
parent | sys-freebsd: remove 10.3_rc3 ebuilds (diff) | |
download | gentoo-bsd-7808fa178a26089ff2fc0c338a3e1835b290ffea.tar.gz gentoo-bsd-7808fa178a26089ff2fc0c338a3e1835b290ffea.tar.bz2 gentoo-bsd-7808fa178a26089ff2fc0c338a3e1835b290ffea.zip |
sys-freebsd: import 10.3 from latest tree
Diffstat (limited to 'sys-freebsd/freebsd-lib/files/freebsd-lib-8.0-log2.patch')
-rw-r--r-- | sys-freebsd/freebsd-lib/files/freebsd-lib-8.0-log2.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-8.0-log2.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-8.0-log2.patch new file mode 100644 index 0000000..a9fd189 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-8.0-log2.patch @@ -0,0 +1,21 @@ +log2 and log2f are required by C99 and are not implemented. +Workaround the deficiency. + +--- lib/msun/src/math.h.old 2010-03-14 17:02:25.000000000 +0100 ++++ lib/msun/src/math.h 2010-03-14 17:07:03.000000000 +0100 +@@ -203,6 +203,7 @@ + double frexp(double, int *); /* fundamentally !__pure2 */ + double ldexp(double, int); + double log(double); ++#define log2(x) log(x)/log(2.0) + double log10(double); + double modf(double, double *); /* fundamentally !__pure2 */ + +@@ -319,6 +320,7 @@ + float log10f(float); + float log1pf(float); + float logf(float); ++#define log2f(x) logf(x)/logf(2.0) + float modff(float, float *); /* fundamentally !__pure2 */ + + float powf(float, float); |