chiark / gitweb /
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 a443900..213ef2f 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