From 4f1d68d0b8765c11ca8ee5b7f199f05bb4380253 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 23 Nov 2010 15:46:55 +0000 Subject: ethtool: Work around old without big-endian types Add an autoconf test for whether __be16 and __be32 are defined. If not, define them in ethtool-util.h. Signed-off-by: Ben Hutchings --- ethtool-util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ethtool-util.h') 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 #include +/* ethtool.h expects these to be defined by */ +#ifndef HAVE_BE_TYPES +typedef __uint16_t __be16; +typedef __uint32_t __be32; +#endif + #include "ethtool-copy.h" typedef unsigned long long u64; -- cgit v1.2.1