chiark / gitweb /
use #pragma once instead of foo*foo #define guards
[elogind.git] / src / shared / missing.h
index 5951e06cfc7566eaab42ea85b20f144ac0e5d574..e600acc0b18e5d0cf04cdb25cb36a6fa2e2e9e8e 100644 (file)
@@ -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,10 @@ 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