]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
ofgwrite: fix build with glibc >= 2.25
authorMarkham <markham001@gmx.de>
Wed, 12 Jun 2019 09:57:04 +0000 (11:57 +0200)
committerMarkham <markham001@gmx.de>
Wed, 12 Jun 2019 09:57:04 +0000 (11:57 +0200)
archive-patches/ofgwrite-fix-build-with-glibc-2.25.patch [new file with mode: 0644]
make/applications.mk

diff --git a/archive-patches/ofgwrite-fix-build-with-glibc-2.25.patch b/archive-patches/ofgwrite-fix-build-with-glibc-2.25.patch
new file mode 100644 (file)
index 0000000..b41e1f6
--- /dev/null
@@ -0,0 +1,30 @@
+--- a/lib/libmtd.c
++++ b/lib/libmtd.c
+@@ -32,6 +32,7 @@
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+ #include <inttypes.h>
++#include <sys/sysmacros.h>
+ #include <mtd/mtd-user.h>
+ #include "libmtd.h"
+--- a/lib/libmtd_legacy.c
++++ b/lib/libmtd_legacy.c
+@@ -32,6 +32,7 @@
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+ #include <mtd/mtd-user.h>
++#include <sys/sysmacros.h>
+ #include "libmtd.h"
+ #include "libmtd_int.h"
+--- a/libubi.c
++++ b/libubi.c
+@@ -33,6 +33,7 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <libubi.h>
++#include <sys/sysmacros.h>
+ #include "libubi_int.h"
+ #include "common.h"
index 52e5636571db7ddf6cf9218d35c538324e8fc4d6..c6f4b34d984c3cd5fa2d2ec5b00d59241ffc5690 100755 (executable)
@@ -912,6 +912,7 @@ $(D)/ofgwrite: $(ARCHIVE)/ofgwrite-git-$(OFGWRITE_VER).tar.bz2 | $(TARGETPREFIX)
        set -e; cd $(BUILD_TMP)/ofgwrite-git-$(OFGWRITE_VER); \
                $(PATCH)/ofgwrite.patch; \
                $(PATCH)/ofgwrite-neutrino.patch; \
+               $(PATCH)/ofgwrite-fix-build-with-glibc-2.25.patch; \
                export CC=$(TARGET)-gcc && \
                export AR=$(TARGET)-ar && \
                $(BUILDENV); \