X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Fcompat.h;h=004e60ace8d86771652405c2076f555969bd12d8;hb=a2adb105d815cfbcf9bf8f870f2f72f79a319138;hp=05b85a930615516da7175af84661ce144f7d5127;hpb=48621a4272bdeb1e8fced511ca6bf3c4c2240c15;p=lttng-ust.git diff --git a/liblttng-ust/compat.h b/liblttng-ust/compat.h index 05b85a93..004e60ac 100644 --- a/liblttng-ust/compat.h +++ b/liblttng-ust/compat.h @@ -14,28 +14,6 @@ * modified is included with the above copyright notice. */ -/* - * sched_getcpu. - */ -#ifdef __linux__ - -#ifdef __UCLIBC__ -#include -#define __getcpu(cpu, node, cache) syscall(__NR_getcpu, cpu, node, cache) -static inline -int sched_getcpu(void) -{ - int c, s; - - s = __getcpu(&c, NULL, NULL); - return (s == -1) ? s : c; -} -#endif /* __UCLIBC__ */ - -#else -#error "Please add support for your OS into liblttng-ust/compat.h." -#endif - /* * lttng_ust_getprocname. */ @@ -77,4 +55,10 @@ void lttng_ust_getprocname(char *name) #endif +#include + +#ifndef ENODATA +#define ENODATA ENOMSG +#endif + #endif /* _UST_COMPAT_H */