X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fmissing.h;h=df3fd0e839d59ef47882041e638bce112f7809f1;hb=56d4fbf92eb6d8eb31c910e137224308c40dd909;hp=5951e06cfc7566eaab42ea85b20f144ac0e5d574;hpb=3bdf9c1d0a241eff2d17591854172725682b27cd;p=elogind.git diff --git a/src/shared/missing.h b/src/shared/missing.h index 5951e06cf..df3fd0e83 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foomissinghfoo -#define foomissinghfoo +#pragma once /*** This file is part of systemd. @@ -133,7 +132,7 @@ static inline int fanotify_init(unsigned int flags, unsigned int event_f_flags) static inline int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dfd, const char *pathname) { -#if defined _MIPS_SIM && _MIPS_SIM == _MIPS_SIM_ABI32 +#if defined _MIPS_SIM && _MIPS_SIM == _MIPS_SIM_ABI32 || defined __powerpc__ && !defined __powerpc64__ union { uint64_t _64; uint32_t _32[2]; @@ -184,4 +183,14 @@ static inline pid_t gettid(void) { #define SCM_SECURITY 0x03 #endif +#ifndef MS_STRICTATIME +#define MS_STRICTATIME (1<<24) +#endif + +#ifndef PR_SET_NO_NEW_PRIVS +#define PR_SET_NO_NEW_PRIVS 38 +#endif + +#ifndef PR_SET_CHILD_SUBREAPER +#define PR_SET_CHILD_SUBREAPER 36 #endif