summaryrefslogtreecommitdiff
path: root/ethtool-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'ethtool-util.h')
-rw-r--r--ethtool-util.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ethtool-util.h b/ethtool-util.h
index c8f98f4..f429555 100644
--- a/ethtool-util.h
+++ b/ethtool-util.h
@@ -4,10 +4,19 @@
#define ETHTOOL_UTIL_H__
#include <sys/types.h>
-typedef unsigned long long u64; /* hack, so we may include kernel's ethtool.h */
+
+/* hack, so we may include kernel's ethtool.h */
+typedef unsigned long long __u64;
+typedef __uint32_t __u32; /* ditto */
+typedef __uint16_t __u16; /* ditto */
+typedef __uint8_t __u8; /* ditto */
+
+/* historical: we used to use kernel-like types; remove these once cleaned */
+typedef unsigned long long u64;
typedef __uint32_t u32; /* ditto */
typedef __uint16_t u16; /* ditto */
typedef __uint8_t u8; /* ditto */
+
#include "ethtool-copy.h"
/* National Semiconductor DP83815, DP83816 */