summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesper Larsen <jesper.larsen@ixonos.com>2013-07-19 11:40:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-19 08:25:50 -0400
commitaea38d8047a7a9370f8545007d242ede4a5cede1 (patch)
tree87cdf9441fa63dad44ccf440b1227a2d1f0722b2
parent6aaa8c2f783cd1b3ac27c5ce40625d032e7e3d71 (diff)
nspawn: Reorder includes to fix compilation
Commit 2e996f4d4b642c5682c608c9692ad2ffae398ab2 added an include of linux/netlink.h This kernel header is not self contained in the linux 2.6 kernel which breaks compilation with an unknown type sa_family_t A workaround is to include linux/netlink.h after sys/socket.h
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index cfd88efc9e..fc005d9ce3 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -39,9 +39,9 @@
#include <sys/signalfd.h>
#include <grp.h>
#include <linux/fs.h>
-#include <linux/netlink.h>
#include <sys/un.h>
#include <sys/socket.h>
+#include <linux/netlink.h>
#include <systemd/sd-daemon.h>
#include <systemd/sd-bus.h>