aboutsummaryrefslogtreecommitdiffstats
path: root/main/ethtool/stdint.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/ethtool/stdint.patch')
-rw-r--r--main/ethtool/stdint.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/ethtool/stdint.patch b/main/ethtool/stdint.patch
new file mode 100644
index 0000000000..cf9ae83c2b
--- /dev/null
+++ b/main/ethtool/stdint.patch
@@ -0,0 +1,25 @@
+--- ./internal.h.orig
++++ ./internal.h
+@@ -7,6 +7,7 @@
+ #include "ethtool-config.h"
+ #endif
+ #include <stdio.h>
++#include <stdint.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/types.h>
+@@ -23,10 +24,10 @@
+ #endif
+
+ typedef unsigned long long u64;
+-typedef __uint32_t u32;
+-typedef __uint16_t u16;
+-typedef __uint8_t u8;
+-typedef __int32_t s32;
++typedef uint32_t u32;
++typedef uint16_t u16;
++typedef uint8_t u8;
++typedef int32_t s32;
+
+ #include "ethtool-copy.h"
+ #include "net_tstamp-copy.h"