From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexuan.cui@intel.com (Cui, Dexuan) Date: Tue, 14 Jun 2011 00:05:56 +0800 Subject: [ltt-dev] [PATCH 1/1] Fix compilation on uclibc In-Reply-To: References: <1307947751-6738-1-git-send-email-dexuan.cui@intel.com> Message-ID: <1865303E0DED764181A9D882DEF65FB699650124AE@shsmsx502.ccr.corp.intel.com> Mathieu Desnoyers wrote: > * Dexuan Cui (dexuan.cui at intel.com) wrote: > > I am going for an approach less intrusive into the code: > > adding ust/compat.h with the sched_getcpu wrapper, and including it > into tracer.h: commit 0a2aba1397f90fa65c293ab856d18579ae14b77f Hi Mathieu, Sorry, actually it's my first time to submit patch to ust -- where is the commit 0a2aba139? I can't find it in git://git.lttng.org/ust.git. > >> cpu = sched_getcpu(); >> +#endif >> if (likely(cpu >= 0)) >> return cpu; >> /* >> diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c >> index 3c7c0bb..07f7f87 100644 >> --- a/libustcomm/ustcomm.c >> +++ b/libustcomm/ustcomm.c >> @@ -33,7 +33,6 @@ >> #include >> #include >> #include >> -#include > > I created a separate commit for this one: > > 5c3950f8809ce2c5272fdbfa27b606f648b485fb Ditto. I can't find it in git://git.lttng.org/ust.git. Thanks, -- Dexuan