From: Jesper Larsen Date: Fri, 19 Jul 2013 09:40:44 +0000 (+0200) Subject: nspawn: Reorder includes to fix compilation X-Git-Tag: v206~30 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=aea38d8047a7a9370f8545007d242ede4a5cede1 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 --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index cfd88efc9..fc005d9ce 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -39,9 +39,9 @@ #include #include #include -#include #include #include +#include #include #include