From 1b61b0173787a4aeb05a58b9e855aaff487b7cac Mon Sep 17 00:00:00 2001 From: Markham Date: Wed, 12 Jun 2019 09:46:07 +0200 Subject: [PATCH] util-linux: fix build with glibc >= 2.25 --- .../util-linux-2.25.2-fix-build-with-glibc-2.25.patch | 11 +++++++++++ make/libraries.mk | 1 + 2 files changed, 12 insertions(+) create mode 100644 archive-patches/util-linux-2.25.2-fix-build-with-glibc-2.25.patch 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 index 0000000..9beaebd --- /dev/null +++ b/archive-patches/util-linux-2.25.2-fix-build-with-glibc-2.25.patch @@ -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 + */ + #include ++#include + + #include "c.h" + #include "at.h" diff --git a/make/libraries.mk b/make/libraries.mk index 9784611..b6b44db 100755 --- a/make/libraries.mk +++ b/make/libraries.mk @@ -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= \ -- 2.39.5