diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-03-26 17:34:53 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-26 17:34:53 +0200 |
commit | 227b8a762fea1458547be2cdf0e6e4aac0079730 (patch) | |
tree | 28d4c99eddb3d06ba3e88aba6097564cbd57234d /hwdb | |
parent | 12b6b3b7a40821e14bcdaa6d972f30a80b7c9669 (diff) | |
download | systemd-227b8a762fea1458547be2cdf0e6e4aac0079730.tar.gz |
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
Diffstat (limited to 'hwdb')
0 files changed, 0 insertions, 0 deletions