core: don't include libmount.h in a header file (#8580)
authorMichael Olbrich <m.olbrich@pengutronix.de>
Mon, 26 Mar 2018 15:34:53 +0000 (17:34 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Mar 2018 15:34:53 +0000 (17:34 +0200)
commit227b8a762fea1458547be2cdf0e6e4aac0079730
tree28d4c99eddb3d06ba3e88aba6097564cbd57234d
parent12b6b3b7a40821e14bcdaa6d972f30a80b7c9669
core: don't include libmount.h in a header file (#8580)

linux/fs.h sys/mount.h, libmount.h and missing.h all include MS_*
definitions.

To avoid problems, only one of linux/fs.h, sys/mount.h and libmount.h
should be included. And missing.h must be included last.

Without this, building systemd may fail with:

In file included from [...]/libmount/libmount.h:31:0,
                 from ../systemd-238/src/core/manager.h:23,
                 from ../systemd-238/src/core/emergency-action.h:37,
                 from ../systemd-238/src/core/unit.h:34,
                 from ../systemd-238/src/core/dbus-timer.h:25,
                 from ../systemd-238/src/core/timer.c:26:
[...]/sys/mount.h:57:2: error: expected identifier before numeric constant
src/core/dbus-execute.c
src/core/manager.h
src/core/mount.c