From: Matt Clarkson Date: Thu, 6 Apr 2017 13:12:17 +0000 (+0100) Subject: build-sys: correct blkid.h includes X-Git-Tag: v234~320^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b5cf3ea621a5bfd218cd2249e066a52c0e73657;p=platform%2Fupstream%2Fsystemd.git 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 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 if using the pkg-config returned CFLAGS. --- diff --git a/src/basic/blkid-util.h b/src/basic/blkid-util.h index 7aa75eb..1b9cace 100644 --- a/src/basic/blkid-util.h +++ b/src/basic/blkid-util.h @@ -20,7 +20,7 @@ ***/ #ifdef HAVE_BLKID -#include +#include #endif #include "util.h" diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 155bf27..3358dc3 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -19,7 +19,7 @@ ***/ #include -#include +#include #include #include #include diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index 80f676e..3578e25 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -17,7 +17,7 @@ along with systemd; If not, see . ***/ -#include +#include #include #include #include diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 1fc0501..ff2a078 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -18,7 +18,7 @@ ***/ #ifdef HAVE_BLKID -#include +#include #endif #include #include diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index 9037aa1..6319403 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 . */ -#include +#include #include #include #include