diff options
author | Daniel Mack <daniel@zonque.org> | 2015-02-24 00:42:13 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-02-24 00:42:13 +0100 |
commit | 2c35d880de01c3f37b49b138455ed2c3641e34ca (patch) | |
tree | 73e734b8db23cad0c966bf073accbfe2ba664c37 /src/shared | |
parent | 2eec67acbb00593e414549a7e5b35eb7dd776b1b (diff) |
sd-bus, shared: fix includes
Include <sys/socket.h> 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);
^
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index a9235536bf..2de654f4cc 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -33,6 +33,7 @@ #include <sched.h> #include <limits.h> #include <sys/types.h> +#include <sys/socket.h> #include <sys/stat.h> #include <dirent.h> #include <stddef.h> |