patch-testcases_realtime_lib_libstats_c 470 B

12345678910111213141516
  1. from buildroot
  2. --- ltp-full-20140422.orig/testcases/realtime/lib/libstats.c 2014-04-23 10:37:00.000000000 +0200
  3. +++ ltp-full-20140422/testcases/realtime/lib/libstats.c 2014-06-27 10:55:59.401744516 +0200
  4. @@ -46,6 +46,11 @@
  5. #include <libstats.h>
  6. #include <librttest.h>
  7. +#ifdef __UCLIBC__
  8. +/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */
  9. +#define exp10(x) (exp((x) * log(10)))
  10. +#endif /* __UCLIBC__ */
  11. +
  12. int save_stats = 0;
  13. /* static helper functions */