Skip to content

cross-compile with uClibc toolchain #13

@wbx-github

Description

@wbx-github

Hi,

I get a compile error when cross-compiling with a uClibc based toolchain.
Buildroot has a fix included, which works for me.
Any idea why it is not yet included?

--- ltp-full-20140422.orig/testcases/realtime/lib/libstats.c 2014-04-23 10:37:00.000000000 +0200
+++ ltp-full-20140422/testcases/realtime/lib/libstats.c 2014-06-27 10:55:59.401744516 +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 */

best regards
Waldemar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions