From: Lennart Poettering Date: Mon, 1 Aug 2011 03:06:15 +0000 (+0200) Subject: missing: define gettid() X-Git-Tag: v33~25 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d14be09d62ab25174d87efd4f6960e90f6bbb82;p=systemd missing: define gettid() --- diff --git a/src/missing.h b/src/missing.h index a4439007..213ef2f6 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