chiark / gitweb /
log: make internal log api log directly to the journal
[elogind.git] / 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