chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journal: move sockets into their own subdir
[elogind.git]
/
src
/
missing.h
diff --git
a/src/missing.h
b/src/missing.h
index a44390074fe14ae171053461c639e0e594b85595..213ef2f6a69235ede7f1b1a0741aab248b766910 100644
(file)
--- 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