X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmissing.h;h=095bf1fe042ad8a694aa1c18eb9a2bb9816e1f57;hp=a44390074fe14ae171053461c639e0e594b85595;hb=6bc1ce40e531257ae8dd9bbbbcb48e5de0a1187b;hpb=7cb1094acefff2a89dc842d84eb94a8afcac67fd diff --git a/src/missing.h b/src/missing.h index a44390074..095bf1fe0 100644 --- a/src/missing.h +++ b/src/missing.h @@ -176,4 +176,12 @@ struct btrfs_ioctl_vol_args { #define MS_PRIVATE (1 << 18) #endif +static inline pid_t gettid(void) { + return (pid_t) syscall(SYS_gettid); +} + +#ifndef SCM_SECURITY +#define SCM_SECURITY 0x03 +#endif + #endif