diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2023-05-31 11:33:15 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2023-05-31 11:33:15 +0200 |
commit | faa47001da3ebea72aa472a667afff201226920b (patch) | |
tree | 9deeefd0f92d41dcffb627becd9f22e127f25a62 | |
parent | 31b7b5ec7edd0027e7121ddb578537d60c8f4bc6 (diff) | |
download | ethtool-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.ac | 7 | ||||
-rw-r--r-- | internal.h | 7 |
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 @@ -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; |