From 4d14be09d62ab25174d87efd4f6960e90f6bbb82 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 1 Aug 2011 05:06:15 +0200 Subject: [PATCH 1/1] missing: define gettid() --- src/missing.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/missing.h b/src/missing.h index a44390074..213ef2f6a 100644 --- a/src/missing.h +++ b/src/missing.h @@ -176,4 +176,8 @@ struct btrfs_ioctl_vol_args { #define MS_PRIVATE (1 << 18) #endif +static inline pid_t gettid(void) { + return (pid_t) syscall(SYS_gettid); +} + #endif -- 2.30.2