diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0003-define-exp10-if-missing.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0003-define-exp10-if-missing.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-core/systemd/systemd/0003-define-exp10-if-missing.patch b/meta/recipes-core/systemd/systemd/0003-define-exp10-if-missing.patch deleted file mode 100644 index 5ba4b9a364..0000000000 --- a/meta/recipes-core/systemd/systemd/0003-define-exp10-if-missing.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 96baee0e1962e559f4ea025024ebc337cb5d50c5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 9 Nov 2016 19:25:45 -0800 | ||
4 | Subject: [PATCH 01/14] define exp10 if missing | ||
5 | |||
6 | Inspired by: http://peter.korsgaard.com/patches/alsa-utils/alsamixer-fix-build-on-uClibc-exp10.patch | ||
7 | |||
8 | exp10 extension is not part of uClibc, so compute it. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Samuel Martin <s.martin49@gmail.com> | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | |||
15 | --- | ||
16 | src/basic/missing.h | 5 +++++ | ||
17 | 1 file changed, 5 insertions(+) | ||
18 | |||
19 | diff --git a/src/basic/missing.h b/src/basic/missing.h | ||
20 | index 7830a4f41..177c0eb8a 100644 | ||
21 | --- a/src/basic/missing.h | ||
22 | +++ b/src/basic/missing.h | ||
23 | @@ -1227,4 +1227,9 @@ struct ethtool_link_settings { | ||
24 | #define AF_VSOCK 40 | ||
25 | #endif | ||
26 | |||
27 | +#ifdef __UCLIBC__ | ||
28 | +/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */ | ||
29 | +#define exp10(x) (exp((x) * log(10))) | ||
30 | +#endif /* __UCLIBC__ */ | ||
31 | + | ||
32 | #include "missing_syscall.h" | ||
33 | -- | ||
34 | 2.13.2 | ||
35 | |||