diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-08-01 05:06:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-08-01 05:06:15 +0200 |
commit | 4d14be09d62ab25174d87efd4f6960e90f6bbb82 (patch) | |
tree | a2632460ff6d167506a4decc79f79410a23b882c /src/missing.h | |
parent | 3bfc71846c3eac9011f0182b0c8d5639a9549228 (diff) |
missing: define gettid()
Diffstat (limited to 'src/missing.h')
-rw-r--r-- | src/missing.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/missing.h b/src/missing.h index a44390074f..213ef2f6a6 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 |