You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
854 B

  1. From 18f8a605e176f0362da22fd1203eb7cedb136aaf Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Tue, 20 Jun 2017 22:06:35 +0200
  4. Subject: [PATCH] include stdint.h for uintptr_t
  5. Fixes
  6. | ../../libtirpc-1.0.1/src/xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
  7. | if (len < (uintptr_t)xdrs->x_base) {
  8. | ^~~~~~~~~
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.com>
  11. ---
  12. src/xdr_sizeof.c | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c
  15. index d23fbd1..79d6707 100644
  16. --- a/src/xdr_sizeof.c
  17. +++ b/src/xdr_sizeof.c
  18. @@ -39,6 +39,7 @@
  19. #include <rpc/xdr.h>
  20. #include <sys/types.h>
  21. #include <stdlib.h>
  22. +#include <stdint.h>
  23. #include "un-namespace.h"
  24. /* ARGSUSED */
  25. --
  26. 2.9.4