0001-nicstat.c-Do-not-define-uint64_t-and-uint32_t.patch 908 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From 52590fbf735cef3fec85a042458aa89a02c52b57 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sat, 15 Jul 2017 11:33:12 -0700
  4. Subject: [PATCH] nicstat.c: Do not define uint64_t and uint32_t
  5. Use the defines from platform
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. ---
  8. nicstat.c | 3 +--
  9. 1 file changed, 1 insertion(+), 2 deletions(-)
  10. diff --git a/nicstat.c b/nicstat.c
  11. index 83ad557..2a6e0c1 100644
  12. --- a/nicstat.c
  13. +++ b/nicstat.c
  14. @@ -32,6 +32,7 @@
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. +#include <stdint.h>
  18. #include <unistd.h>
  19. #include <string.h>
  20. #include <ctype.h>
  21. @@ -88,8 +89,6 @@
  22. #define PROC_NET_BUFSIZ (128 * 1024)
  23. #define PROC_UPTIME "/proc/uptime"
  24. /* Needs to be fixed if not built under ILP32 */
  25. -typedef unsigned long long uint64_t;
  26. -typedef unsigned int uint32_t;
  27. extern char *optarg;
  28. extern int optind, opterr, optopt;
  29. #endif /* OS_LINUX */
  30. --
  31. 2.13.3