summaryrefslogtreecommitdiff
path: root/ethtool-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'ethtool-util.h')
-rw-r--r--ethtool-util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethtool-util.h b/ethtool-util.h
index 4ef3a9f..f053028 100644
--- a/ethtool-util.h
+++ b/ethtool-util.h
@@ -6,6 +6,12 @@
#include <sys/types.h>
#include <endian.h>
+/* ethtool.h expects these to be defined by <linux/types.h> */
+#ifndef HAVE_BE_TYPES
+typedef __uint16_t __be16;
+typedef __uint32_t __be32;
+#endif
+
#include "ethtool-copy.h"
typedef unsigned long long u64;