1
0

patch-internal_h 834 B

123456789101112131415161718192021222324252627282930313233
  1. --- ethtool-3.13.orig/internal.h 2014-01-27 02:27:14.000000000 +0100
  2. +++ ethtool-3.13/internal.h 2014-03-23 13:47:54.000000000 +0100
  3. @@ -7,6 +7,7 @@
  4. #include "ethtool-config.h"
  5. #endif
  6. #include <stdio.h>
  7. +#include <stdint.h>
  8. #include <stdlib.h>
  9. #include <string.h>
  10. #include <sys/types.h>
  11. @@ -17,16 +18,16 @@
  12. /* ethtool.h expects these to be defined by <linux/types.h> */
  13. #ifndef HAVE_BE_TYPES
  14. -typedef __uint16_t __be16;
  15. -typedef __uint32_t __be32;
  16. +typedef uint16_t __be16;
  17. +typedef uint32_t __be32;
  18. typedef unsigned long long __be64;
  19. #endif
  20. typedef unsigned long long u64;
  21. -typedef __uint32_t u32;
  22. -typedef __uint16_t u16;
  23. -typedef __uint8_t u8;
  24. -typedef __int32_t s32;
  25. +typedef uint32_t u32;
  26. +typedef uint16_t u16;
  27. +typedef uint8_t u8;
  28. +typedef int32_t s32;
  29. #include "ethtool-copy.h"
  30. #include "net_tstamp-copy.h"