Message ID | 20210825194543.34de6c3f@rorschach.local.home (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | libtracefs: Define gettid() when not defined | expand |
diff --git a/src/tracefs-hist.c b/src/tracefs-hist.c index 003715f..c0d3049 100644 --- a/src/tracefs-hist.c +++ b/src/tracefs-hist.c @@ -24,6 +24,11 @@ #define ASCENDING ".ascending" #define DESCENDING ".descending" +#ifndef gettid +# include <sys/syscall.h> +# define gettid() syscall(__NR_gettid) +#endif + struct tracefs_hist { struct tep_handle *tep; struct tep_event *event;