1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-29 04:55:36 +03:00

nspawn: Reorder includes to fix compilation

Commit 2e996f4d4b 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
This commit is contained in:
Jesper Larsen 2013-07-19 11:40:44 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6aaa8c2f78
commit aea38d8047

View File

@ -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>