diff options
author | Matt Clarkson <mattyclarkson@gmail.com> | 2017-04-06 15:12:17 +0200 |
---|---|---|
committer | Matt Clarkson <mattyclarkson@gmail.com> | 2017-04-06 15:33:02 +0200 |
commit | 6b5cf3ea621a5bfd218cd2249e066a52c0e73657 (patch) | |
tree | 5fd7497deae254cc4094188078b08a0d9584cab9 /src/udev/udev-builtin-blkid.c | |
parent | build-sys: correct ARM32 GNU EFI boot binary build (diff) | |
download | systemd-6b5cf3ea621a5bfd218cd2249e066a52c0e73657.tar.xz systemd-6b5cf3ea621a5bfd218cd2249e066a52c0e73657.zip |
build-sys: correct blkid.h includes
When using pkg-config to determine the include flags for blkid the
flags are returned as:
$ pkg-config blkid --cflags
-I/usr/include/blkid -I/usr/include/uuid
We use the <blkid/blkid.h> include which would be correct when using
the default compiler /usr/include header search path. However, when
cross-compiling the blkid.h will not be installed at /usr/include and
highly likely in a temporary system root. It is futher compounded if
the cross-compile packages are split up and the blkid package is not
available in the same sysroot as the compiler.
Regardless of the compilation setup, the correct include path should be
<blkid.h> if using the pkg-config returned CFLAGS.
Diffstat (limited to '')
-rw-r--r-- | src/udev/udev-builtin-blkid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index 9037aa1304..6319403620 100644 --- a/src/udev/udev-builtin-blkid.c +++ b/src/udev/udev-builtin-blkid.c @@ -18,7 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <blkid/blkid.h> +#include <blkid.h> #include <errno.h> #include <fcntl.h> #include <getopt.h> |