diff options
Diffstat (limited to 'gnu/packages/patches/libtirpc-missing-headers.patch')
-rw-r--r-- | gnu/packages/patches/libtirpc-missing-headers.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/patches/libtirpc-missing-headers.patch b/gnu/packages/patches/libtirpc-missing-headers.patch new file mode 100644 index 0000000000..5a96711820 --- /dev/null +++ b/gnu/packages/patches/libtirpc-missing-headers.patch @@ -0,0 +1,40 @@ +Fix compilation failure with glibc 2.26 caused by missing type +declarations: + +------ +xdr_sizeof.c: In function ‘x_inline’: +xdr_sizeof.c:93:13: error: ‘uintptr_t’ undeclared (first use in this function) + if (len < (uintptr_t)xdrs->x_base) { +------ + +Patch copied from upstream source repository: + +http://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=acb9a37977cf0a9630eac74af9adebf35e38e719 + +From acb9a37977cf0a9630eac74af9adebf35e38e719 Mon Sep 17 00:00:00 2001 +From: Thorsten Kukuk <kukuk@thkukuk.de> +Date: Tue, 14 Nov 2017 10:39:08 -0500 +Subject: [PATCH] Include stdint.h from xdr_sizeof.c to avoid missing + declaration errors. + +Signed-off-by: Thorsten Kukuk <kukuk@suse.de> +Signed-off-by: Steve Dickson <steved@redhat.com> +--- + 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 <rpc/xdr.h> + #include <sys/types.h> + #include <stdlib.h> ++#include <stdint.h> + #include "un-namespace.h" + + /* ARGSUSED */ +-- +1.8.3.1 + |