From ef168cb0d3b37fa9b4f7d4858faf0e9c62a5222f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 5 Jul 2011 17:07:40 +0000 Subject: [PATCH] wing: the host build fails with glibc 2.5 - add compat macros, observed on CentOS 5.6 SVN-Revision: 27461 --- net/wing/patches/010-libc-compat.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 net/wing/patches/010-libc-compat.patch diff --git a/net/wing/patches/010-libc-compat.patch b/net/wing/patches/010-libc-compat.patch new file mode 100644 index 000000000..c656b2b19 --- /dev/null +++ b/net/wing/patches/010-libc-compat.patch @@ -0,0 +1,22 @@ +Index: wing-20110329/lib/radiotap.c +=================================================================== +--- wing-20110329.orig/lib/radiotap.c 2011-07-05 15:33:21.000000000 +0200 ++++ wing-20110329/lib/radiotap.c 2011-07-05 18:57:58.110124772 +0200 +@@ -16,6 +16,17 @@ + #include + #include + ++#if !defined(le32toh) || !defined(le16toh) ++# if BYTE_ORDER == LITTLE_ENDIAN ++# define le32toh(x) (x) ++# define le16toh(x) (x) ++# else ++# include ++# define le32toh(x) bswap_32(x) ++# define le16toh(x) bswap_16(x) ++# endif ++#endif ++ + /* function prototypes and related defs are in radiotap_iter.h */ + + static const struct radiotap_align_size rtap_namespace_sizes[] = { -- 2.30.2