]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/missing.h
missing: move one more network related definition to missing_network.h
[thirdparty/systemd.git] / src / basic / missing.h
index fdf8d4105c1ffd7888704b8a89b1bc5dc9691764..a057d06277617a6457f1fcc6852981f839c50d0c 100644 (file)
@@ -7,15 +7,12 @@
 #include <fcntl.h>
 #include <inttypes.h>
 #include <linux/audit.h>
-#include <linux/capability.h>
 #include <linux/falloc.h>
 #include <linux/oom.h>
-#include <net/ethernet.h>
 #include <stdlib.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/syscall.h>
-#include <uchar.h>
 #include <unistd.h>
 
 #if HAVE_AUDIT
@@ -118,10 +115,6 @@ struct sockaddr_vm {
 #define SOL_NETLINK 270
 #endif
 
-#ifndef NETLINK_LIST_MEMBERSHIPS
-#define NETLINK_LIST_MEMBERSHIPS 9
-#endif
-
 #ifndef SOL_SCTP
 #define SOL_SCTP 132
 #endif
@@ -254,15 +247,6 @@ struct sockaddr_vm {
 #define BPF_XOR 0xa0
 #endif
 
-/* Note that LOOPBACK_IFINDEX is currently not exported by the
- * kernel/glibc, but hardcoded internally by the kernel.  However, as
- * it is exported to userspace indirectly via rtnetlink and the
- * ioctls, and made use of widely we define it here too, in a way that
- * is compatible with the kernel's internal definition. */
-#ifndef LOOPBACK_IFINDEX
-#define LOOPBACK_IFINDEX 1
-#endif
-
 #ifndef MAX_AUDIT_MESSAGE_LENGTH
 #define MAX_AUDIT_MESSAGE_LENGTH 8970
 #endif
@@ -271,30 +255,6 @@ struct sockaddr_vm {
 #define AUDIT_NLGRP_READLOG 1
 #endif
 
-#ifndef CAP_MAC_OVERRIDE
-#define CAP_MAC_OVERRIDE 32
-#endif
-
-#ifndef CAP_MAC_ADMIN
-#define CAP_MAC_ADMIN 33
-#endif
-
-#ifndef CAP_SYSLOG
-#define CAP_SYSLOG 34
-#endif
-
-#ifndef CAP_WAKE_ALARM
-#define CAP_WAKE_ALARM 35
-#endif
-
-#ifndef CAP_BLOCK_SUSPEND
-#define CAP_BLOCK_SUSPEND 36
-#endif
-
-#ifndef CAP_AUDIT_READ
-#define CAP_AUDIT_READ 37
-#endif
-
 #ifndef RENAME_NOREPLACE
 #define RENAME_NOREPLACE (1 << 0)
 #endif
@@ -303,18 +263,6 @@ struct sockaddr_vm {
 #define KCMP_FILE 0
 #endif
 
-#if !HAVE_CHAR32_T
-#define char32_t uint32_t
-#endif
-
-#if !HAVE_CHAR16_T
-#define char16_t uint16_t
-#endif
-
-#ifndef ETHERTYPE_LLDP
-#define ETHERTYPE_LLDP 0x88cc
-#endif
-
 #ifndef SOL_ALG
 #define SOL_ALG 279
 #endif
@@ -351,9 +299,11 @@ struct sockaddr_vm {
 #endif
 
 #include "missing_btrfs_tree.h"
+#include "missing_capability.h"
 #include "missing_input.h"
 #include "missing_magic.h"
 #include "missing_network.h"
 #include "missing_prctl.h"
+#include "missing_type.h"
 
 #include "missing_syscall.h"