#include <sys/syscall.h>
#include <unistd.h>
+#include "musl_missing.h"
+
#ifdef HAVE_AUDIT
#include <libaudit.h>
#endif
#define NETLINK_LIST_MEMBERSHIPS 9
#endif
+#ifndef SOL_SCTP
+#define SOL_SCTP 132
+#endif
+
#if !HAVE_DECL_PIVOT_ROOT
static inline int pivot_root(const char *new_root, const char *put_old) {
return syscall(SYS_pivot_root, new_root, put_old);
#define BTRFS_QGROUP_LEVEL_SHIFT 48
#endif
+#if 0 /// UNNEEDED by elogind (It can not support BTRFS at all)
#ifndef HAVE_LINUX_BTRFS_H
struct btrfs_ioctl_vol_args {
int64_t fd;
#define BTRFS_SUPER_MAGIC 0x9123683E
#endif
+#endif // 0
+
#ifndef CGROUP_SUPER_MAGIC
#define CGROUP_SUPER_MAGIC 0x27e0eb
#endif
#define IFA_FLAGS 8
#endif
+#ifndef IFA_F_MANAGETEMPADDR
+#define IFA_F_MANAGETEMPADDR 0x100
+#endif
+
#ifndef IFA_F_NOPREFIXROUTE
#define IFA_F_NOPREFIXROUTE 0x200
#endif
#endif
}
+#if 0 /// UNNEEDED by elogind
+
#if !HAVE_DECL_RENAMEAT2
+
#ifndef __NR_renameat2
# if defined __x86_64__
# define __NR_renameat2 316
#ifndef KEY_SPEC_USER_KEYRING
#define KEY_SPEC_USER_KEYRING -4
#endif
+#endif // 0