aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2023-05-31 11:33:15 +0200
committerMichal Kubecek <mkubecek@suse.cz>2023-05-31 11:33:15 +0200
commitfaa47001da3ebea72aa472a667afff201226920b (patch)
tree9deeefd0f92d41dcffb627becd9f22e127f25a62
parent31b7b5ec7edd0027e7121ddb578537d60c8f4bc6 (diff)
downloadethtool-faa47001da3ebea72aa472a667afff201226920b.tar.gz
drop check for big endian types
The build time check for definition of __be16 and __be32 types and their fallback definitions are no longer needed since we added a sanitized copy of linux/types.h which does provide these types (and __be64 which we also need). These were provided to fix build on older systems with outdated system <linux/types.h> Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
-rw-r--r--configure.ac7
-rw-r--r--internal.h7
2 files changed, 0 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 5735e24..3aaa9eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,13 +27,6 @@ dnl Checks for libraries.
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
-AC_MSG_CHECKING([whether <linux/types.h> defines big-endian types])
-AC_TRY_COMPILE([#include <linux/types.h>],
- [__be16 foo;__be32 bar;],
- [AC_MSG_RESULT(yes)
- AC_DEFINE([HAVE_BE_TYPES], [1],
- [Define to 1 if <linux/types.h> defines big-endian types])],
- [AC_MSG_RESULT(no)])
dnl Checks for library functions.
AC_HEADER_STDC
diff --git a/internal.h b/internal.h
index 3923719..42f7eeb 100644
--- a/internal.h
+++ b/internal.h
@@ -36,13 +36,6 @@
struct nl_context;
#endif
-/* ethtool.h expects these to be defined by <linux/types.h> */
-#ifndef HAVE_BE_TYPES
-typedef uint16_t __be16;
-typedef uint32_t __be32;
-typedef unsigned long long __be64;
-#endif
-
typedef unsigned long long u64;
typedef uint32_t u32;
typedef uint16_t u16;