]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: correct blkid.h includes 5708/head
authorMatt Clarkson <mattyclarkson@gmail.com>
Thu, 6 Apr 2017 13:12:17 +0000 (14:12 +0100)
committerMatt Clarkson <mattyclarkson@gmail.com>
Thu, 6 Apr 2017 13:33:02 +0000 (14:33 +0100)
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.

src/basic/blkid-util.h
src/boot/bootctl.c
src/gpt-auto-generator/gpt-auto-generator.c
src/nspawn/nspawn.c
src/udev/udev-builtin-blkid.c

index 7aa75eb091242e3d17b137440a18ad7efa6d266b..1b9cace0407257d05aca29b3faf686642c125cdc 100644 (file)
@@ -20,7 +20,7 @@
 ***/
 
 #ifdef HAVE_BLKID
-#include <blkid/blkid.h>
+#include <blkid.h>
 #endif
 
 #include "util.h"
index 155bf278b2e444072e05d60916070f9d3036e3fd..3358dc32a502d0c58436e024dcb1d6cd616acac6 100644 (file)
@@ -19,7 +19,7 @@
 ***/
 
 #include <assert.h>
-#include <blkid/blkid.h>
+#include <blkid.h>
 #include <ctype.h>
 #include <dirent.h>
 #include <errno.h>
index 80f676e477b83353aa37aebc06a8778be3237362..3578e2513c728430bdc62ce10d8f6144d5f0295d 100644 (file)
@@ -17,7 +17,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <blkid/blkid.h>
+#include <blkid.h>
 #include <stdlib.h>
 #include <sys/statfs.h>
 #include <unistd.h>
index 1fc0501c2e70eb590cc8f67ee4d0596486b08813..ff2a0788532e6c3dad2936ac550e777a26828e33 100644 (file)
@@ -18,7 +18,7 @@
 ***/
 
 #ifdef HAVE_BLKID
-#include <blkid/blkid.h>
+#include <blkid.h>
 #endif
 #include <errno.h>
 #include <getopt.h>
index 9037aa1304d68a3b31c626babf73b961715ee59d..63194036206497d2ac8529fc296052df6f837ba5 100644 (file)
@@ -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>