Commit | Line | Data |
---|---|---|
e5227712 LF |
1 | Fix compilation failure with glibc 2.26 caused by missing type |
2 | declarations: | |
3 | ||
4 | ------ | |
5 | xdr_sizeof.c: In function ‘x_inline’: | |
6 | xdr_sizeof.c:93:13: error: ‘uintptr_t’ undeclared (first use in this function) | |
7 | if (len < (uintptr_t)xdrs->x_base) { | |
8 | ------ | |
9 | ||
10 | Patch copied from upstream source repository: | |
11 | ||
12 | http://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=acb9a37977cf0a9630eac74af9adebf35e38e719 | |
13 | ||
14 | From acb9a37977cf0a9630eac74af9adebf35e38e719 Mon Sep 17 00:00:00 2001 | |
15 | From: Thorsten Kukuk <kukuk@thkukuk.de> | |
16 | Date: Tue, 14 Nov 2017 10:39:08 -0500 | |
17 | Subject: [PATCH] Include stdint.h from xdr_sizeof.c to avoid missing | |
18 | declaration errors. | |
19 | ||
20 | Signed-off-by: Thorsten Kukuk <kukuk@suse.de> | |
21 | Signed-off-by: Steve Dickson <steved@redhat.com> | |
22 | --- | |
23 | src/xdr_sizeof.c | 1 + | |
24 | 1 file changed, 1 insertion(+) | |
25 | ||
26 | diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c | |
27 | index d23fbd1..79d6707 100644 | |
28 | --- a/src/xdr_sizeof.c | |
29 | +++ b/src/xdr_sizeof.c | |
30 | @@ -39,6 +39,7 @@ | |
31 | #include <rpc/xdr.h> | |
32 | #include <sys/types.h> | |
33 | #include <stdlib.h> | |
34 | +#include <stdint.h> | |
35 | #include "un-namespace.h" | |
36 | ||
37 | /* ARGSUSED */ | |
38 | -- | |
39 | 1.8.3.1 | |
40 |