mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
ltp-testsuite: fix build on uClibc exp10
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
d57f905d93
commit
b49e2c11f6
@ -0,0 +1,22 @@
|
|||||||
|
Inspired by: http://peter.korsgaard.com/patches/alsa-utils/alsamixer-fix-build-on-uClibc-exp10.patch
|
||||||
|
|
||||||
|
exp10 extension is not part of uClibc, so compute it.
|
||||||
|
|
||||||
|
|
||||||
|
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
||||||
|
|
||||||
|
diff -purN ltp-testsuite-20101031.orig/testcases/realtime/lib/libstats.c ltp-testsuite-20101031/testcases/realtime/lib/libstats.c
|
||||||
|
--- ltp-testsuite-20101031.orig/testcases/realtime/lib/libstats.c 2012-10-22 23:19:02.306646174 +0200
|
||||||
|
+++ ltp-testsuite-20101031/testcases/realtime/lib/libstats.c 2012-10-22 23:25:41.554847766 +0200
|
||||||
|
@@ -46,6 +46,11 @@
|
||||||
|
#include <libstats.h>
|
||||||
|
#include <librttest.h>
|
||||||
|
|
||||||
|
+#ifdef __UCLIBC__
|
||||||
|
+/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */
|
||||||
|
+#define exp10(x) (exp((x) * log(10)))
|
||||||
|
+#endif /* __UCLIBC__ */
|
||||||
|
+
|
||||||
|
int save_stats = 0;
|
||||||
|
|
||||||
|
/* static helper functions */
|
Loading…
x
Reference in New Issue
Block a user