]> err.no Git - systemd/commitdiff
missing: define gettid()
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Aug 2011 03:06:15 +0000 (05:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Aug 2011 03:06:15 +0000 (05:06 +0200)
src/missing.h

index a44390074fe14ae171053461c639e0e594b85595..213ef2f6a69235ede7f1b1a0741aab248b766910 100644 (file)
@@ -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