• 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/ltp-testsuite/0001-fix-build-on-uClibc-exp10.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Inspired by: http://peter.korsgaard.com/patches/alsa-utils/alsamixer-fix-build-on-uClibc-exp10.patch
2
​
3
exp10 extension is not part of uClibc, so compute it.
4
​
5
​
6
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
7
​
8
diff -purN ltp-testsuite-20101031.orig/testcases/realtime/lib/libstats.c ltp-testsuite-20101031/testcases/realtime/lib/libstats.c
9
--- ltp-testsuite-20101031.orig/testcases/realtime/lib/libstats.c   2012-10-22 23:19:02.306646174 +0200
10
+++ ltp-testsuite-20101031/testcases/realtime/lib/libstats.c    2012-10-22 23:25:41.554847766 +0200
11
@@ -46,6 +46,11 @@
12
 #include <libstats.h>
13
 #include <librttest.h>
14
 
15
+#ifdef __UCLIBC__
16
+/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */
17
+#define exp10(x) (exp((x) * log(10)))
18
+#endif /* __UCLIBC__ */
19
+
20
 int save_stats = 0;
21
 
22
 /* static helper functions */
  • 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.