summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-08-01 05:06:15 +0200
committerLennart Poettering <lennart@poettering.net>2011-08-01 05:06:15 +0200
commit4d14be09d62ab25174d87efd4f6960e90f6bbb82 (patch)
treea2632460ff6d167506a4decc79f79410a23b882c
parent3bfc71846c3eac9011f0182b0c8d5639a9549228 (diff)
missing: define gettid()
-rw-r--r--src/missing.h4
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