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

diff --git a/archive-patches/util-linux-2.25.2-fix-build-with-glibc-2.25.patch b/archive-patches/util-linux-2.25.2-fix-build-with-glibc-2.25.patch
new file mode 100644 (file)
index 0000000..9beaebd
--- /dev/null
@@ -0,0 +1,11 @@
+# fix build with glibc >= 2.25
+--- a/lib/sysfs.c
++++ b/lib/sysfs.c
+@@ -5,6 +5,7 @@
+  * Written by Karel Zak <kzak@redhat.com>
+  */
+ #include <ctype.h>
++#include <sys/sysmacros.h>
+ #include "c.h"
+ #include "at.h"
index 97846112e611aa33aefb65e7381caba1d33aa02d..b6b44dbff18df3495fd80b6104ff95b1cd62040c 100755 (executable)
@@ -96,6 +96,7 @@ $(D)/util-linux: $(D)/libncurses $(ARCHIVE)/util-linux-$(UTIL_LINUX_VER).tar.xz
        cd $(BUILD_TMP)/util-linux-$(UTIL_LINUX_VER) && \
                $(PATCH)/util-linux-2.25.2-no-printf-alloc.patch && \
                $(PATCH)/util-linux-2.25.2-lib-colors-use-static-buffers-when-parse-scheme.patch && \
+               $(PATCH)/util-linux-2.25.2-fix-build-with-glibc-2.25.patch && \
                autoreconf -fi && \
                $(CONFIGURE) \
                        --prefix= \