Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
@ 2017-06-15 18:05 Dmitrii Kolesnichenko
  2017-06-15 21:19 ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitrii Kolesnichenko @ 2017-06-15 18:05 UTC (permalink / raw)
  To: buildroot

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) {
|              ^~~~~~~~~

It includes stdint.h to provide uintptr_t.

This patch has been submitted upstream:
https://sourceforge.net/p/libtirpc/mailman/libtirpc-devel/

Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.com>
---
 ...ild-error-due-to-missing-stdint.h-include.patch | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch

diff --git a/package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch b/package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch
new file mode 100644
index 0000000..ccb0dff
--- /dev/null
+++ b/package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch
@@ -0,0 +1,26 @@
+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@...>
+---
+Upstream-Status: Pending
+
+ 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.13.0
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-20 20:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-15 18:05 [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion Dmitrii Kolesnichenko
2017-06-15 21:19 ` Thomas Petazzoni
2017-06-16 11:51   ` Dmitrii Kolesnichenko
2017-06-16 12:25     ` Thomas Petazzoni
2017-06-16 15:40       ` Dmitrii Kolesnichenko
2017-06-19 15:06       ` Dmitrii Kolesnichenko
2017-06-19 19:31         ` Thomas Petazzoni
2017-06-20  8:51           ` [Buildroot] [PATCH v3] " Dmitrii Kolesnichenko
2017-06-20 10:47             ` Alexey Brodkin
2017-06-20 16:55               ` [Buildroot] [PATCH v4] " Dmitrii Kolesnichenko
2017-06-20 20:10                 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox