summaryrefslogtreecommitdiff
path: root/src/basic/missing.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-11-11 15:17:29 +0100
committerTom Gundersen <teg@jklm.no>2015-11-11 15:42:38 +0100
commit8ae4b6d12ca93fcfa17d209c40ea0b75c8a7f88e (patch)
treedad4894c0edb5770a1c5b9e75cb5e91d278bc613 /src/basic/missing.h
parent6b9e85a7dea3a14be8d6229a667222f104cec208 (diff)
sd-netlink: types - let tables be sized implicitly
This way we do not rely on the size MAX* constants from the kernel headers, as these will be out-of-sync in case we have old headers and new defines in missing.h.
Diffstat (limited to 'src/basic/missing.h')
-rw-r--r--src/basic/missing.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h
index 306c56a156..71dad8f0ad 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -23,19 +23,20 @@
/* Missing glibc definitions to access certain kernel APIs */
-#include <sys/resource.h>
-#include <sys/syscall.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <errno.h>
-#include <linux/oom.h>
-#include <linux/input.h>
-#include <linux/if_link.h>
-#include <linux/loop.h>
+#include <fcntl.h>
#include <linux/audit.h>
#include <linux/capability.h>
+#include <linux/if_link.h>
+#include <linux/input.h>
+#include <linux/loop.h>
#include <linux/neighbour.h>
+#include <linux/oom.h>
+#include <linux/rtnetlink.h>
+#include <stdlib.h>
+#include <sys/resource.h>
+#include <sys/syscall.h>
+#include <unistd.h>
#ifdef HAVE_AUDIT
#include <libaudit.h>