aboutsummaryrefslogtreecommitdiff
path: root/package/libtirpc
diff options
context:
space:
mode:
authorGravatar Dmitrii Kolesnichenko <Dmitrii.Kolesnichenko@synopsys.com>2017-06-20 19:55:31 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-20 22:07:32 +0200
commitb3998dc00ff26c4848b4439ba301502faf8f1995 (patch)
treec510b272a1da2e24ef445c22f6a4019fcc634cd0 /package/libtirpc
parentcdd213170c2a61bde07ac07f1f288f8d75216478 (diff)
downloadbuildroot-b3998dc00ff26c4848b4439ba301502faf8f1995.tar.gz
buildroot-b3998dc00ff26c4848b4439ba301502faf8f1995.tar.bz2
libtirpc: Fix build error due to missing stdint.h inclusion
Add patch to fix following error: | ../../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) { | ^~~~~~~~~ This error occurs with the latest glibc master version (during the testing I had glibc commit 92bd70fb85bce57ac47ba5d8af008736832c955a), but doesn't occur with version 2.25. Patch includes stdint.h to provide uintptr_t. It has been submitted upstream: https://sourceforge.net/p/libtirpc/mailman/message/35850276/ Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.com> [Thomas: reformat as Git formatted patch.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libtirpc')
-rw-r--r--package/libtirpc/0008-include-stdint.h-for-uintptr_t.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/libtirpc/0008-include-stdint.h-for-uintptr_t.patch b/package/libtirpc/0008-include-stdint.h-for-uintptr_t.patch
new file mode 100644
index 0000000000..62031613d6
--- /dev/null
+++ b/package/libtirpc/0008-include-stdint.h-for-uintptr_t.patch
@@ -0,0 +1,31 @@
+From 18f8a605e176f0362da22fd1203eb7cedb136aaf Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+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 <raj.khem@gmail.com>
+Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.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 */
+--
+2.9.4
+