diff --git a/archive-patches/libtirpc-0007-include-stdint.h-for-uintptr_t.patch b/archive-patches/libtirpc-0007-include-stdint.h-for-uintptr_t.patch new file mode 100644 index 00000000..62031613 --- /dev/null +++ b/archive-patches/libtirpc-0007-include-stdint.h-for-uintptr_t.patch @@ -0,0 +1,31 @@ +From 18f8a605e176f0362da22fd1203eb7cedb136aaf Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 20 Jun 2017 22:06:35 +0200 +Subject: [PATCH] include stdint.h for uintptr_t + +Fixes +| ../../libtirpc-1.0.1/src/xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'? +| if (len < (uintptr_t)xdrs->x_base) { +| ^~~~~~~~~ + +Signed-off-by: Khem Raj +Signed-off-by: Dmitrii Kolesnichenko +--- + src/xdr_sizeof.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c +index d23fbd1..79d6707 100644 +--- a/src/xdr_sizeof.c ++++ b/src/xdr_sizeof.c +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include "un-namespace.h" + + /* ARGSUSED */ +-- +2.9.4 + diff --git a/make/archives.mk b/make/archives.mk index 68353b88..a376471b 100644 --- a/make/archives.mk +++ b/make/archives.mk @@ -32,7 +32,7 @@ RPCBIND_VER=1.2.5 $(ARCHIVE)/rpcbind-$(RPCBIND_VER).tar.bz2: $(WGET) http://sourceforge.net/projects/rpcbind/files/rpcbind/$(RPCBIND_VER)/rpcbind-$(RPCBIND_VER).tar.bz2 -LIBTIRPC_VER=1.0.3 +LIBTIRPC_VER=1.0.2 $(ARCHIVE)/libtirpc-$(LIBTIRPC_VER).tar.bz2: $(WGET) http://sourceforge.net/projects/libtirpc/files/libtirpc/$(LIBTIRPC_VER)/libtirpc-$(LIBTIRPC_VER).tar.bz2 diff --git a/make/system-libs.mk b/make/system-libs.mk index 9de2431f..b85a850c 100644 --- a/make/system-libs.mk +++ b/make/system-libs.mk @@ -715,6 +715,7 @@ $(D)/libtirpc: $(ARCHIVE)/libtirpc-$(LIBTIRPC_VER).tar.bz2 | $(TARGET_DIR) $(PATCH)/libtirpc-0004-Automatically-generate-XDR-header-files-from-.x-sour.patch && \ $(PATCH)/libtirpc-0005-Add-more-XDR-files-needed-to-build-rpcbind-on-top-of.patch && \ $(PATCH)/libtirpc-0006-Disable-DES-authentification-support.patch && \ + $(PATCH)/libtirpc-0007-include-stdint.h-for-uintptr_t.patch && \ autoreconf -fi && \ $(CONFIGURE) \ --target=$(TARGET) \