From: Daniel Mack Date: Mon, 23 Feb 2015 23:42:13 +0000 (+0100) Subject: sd-bus, shared: fix includes X-Git-Tag: v219.0~608 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2c35d880de01c3f37b49b138455ed2c3641e34ca;p=elogind.git sd-bus, shared: fix includes Include from util.h and bus-message.h in order to build errors like the ones below on kdbus enabled systems. ./src/shared/util.h:976:32: warning: its scope is only this definition or declaration, which is probably not what you want In file included from src/libsystemd/sd-bus/bus-kernel.c:37:0: ./src/shared/util.h:1081:28: warning: 'struct msghdr' declared inside parameter list void cmsg_close_all(struct msghdr *mh); ^ CC src/libsystemd/sd-bus/libsystemd_la-bus-creds.lo In file included from src/libsystemd/sd-bus/bus-creds.c:25:0: ./src/shared/util.h:976:32: warning: 'struct ucred' declared inside parameter list int getpeercred(int fd, struct ucred *ucred); ^ --- diff --git a/src/libsystemd/sd-bus/bus-message.h b/src/libsystemd/sd-bus/bus-message.h index a68dee42b..d784e603d 100644 --- a/src/libsystemd/sd-bus/bus-message.h +++ b/src/libsystemd/sd-bus/bus-message.h @@ -23,6 +23,7 @@ #include #include +#include #include "macro.h" #include "sd-bus.h" diff --git a/src/shared/util.h b/src/shared/util.h index a9235536b..2de654f4c 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include