]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
udev: fix build with kernel 4.9 headers
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Feb 2017 18:51:22 +0000 (19:51 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Feb 2017 18:51:22 +0000 (19:51 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/udev
src/patches/udev-208-fix_uint8_t.patch [new file with mode: 0644]

index 320f2723778ac961b714cdccc0f08c5a8399192f..f6686954d157728dd37d14bc018c9501704189d1 100644 (file)
--- a/lfs/udev
+++ b/lfs/udev
@@ -76,6 +76,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && tar axf $(DIR_DL)/udev-lfs-$(VER)-1.tar.bz2
 
        cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/udev-208_remove_systemd_log.patch
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/udev-208-fix_uint8_t.patch
 
        cd $(DIR_APP)/udev-lfs-$(VER)-1 && sed -i "s/HANDLE_AT 1/HANDLE_AT 0/g" cfg.h
 
diff --git a/src/patches/udev-208-fix_uint8_t.patch b/src/patches/udev-208-fix_uint8_t.patch
new file mode 100644 (file)
index 0000000..06aee3b
--- /dev/null
@@ -0,0 +1,11 @@
+diff -Naur systemd-208.org/src/udev/mtd_probe/mtd_probe.h systemd-208/src/udev/mtd_probe/mtd_probe.h
+--- systemd-208.org/src/udev/mtd_probe/mtd_probe.h     2013-08-13 22:02:47.000000000 +0200
++++ systemd-208/src/udev/mtd_probe/mtd_probe.h 2017-02-07 18:08:33.492985563 +0100
+@@ -18,6 +18,7 @@
+  */
+ #include <mtd/mtd-user.h>
++#include <stdint.h>
+ /* Full oob structure as written on the flash */
+ struct sm_oob {