[packages] wing: the host build fails with glibc 2.5 - add compat macros, observed on CentOS 5.6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@27461 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2598bdd1ad
commit
e9bb9b30d8
22
net/wing/patches/010-libc-compat.patch
Normal file
22
net/wing/patches/010-libc-compat.patch
Normal file
@ -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 <click/radiotap_iter.h>
|
||||
#include <click/platform.h>
|
||||
|
||||
+#if !defined(le32toh) || !defined(le16toh)
|
||||
+# if BYTE_ORDER == LITTLE_ENDIAN
|
||||
+# define le32toh(x) (x)
|
||||
+# define le16toh(x) (x)
|
||||
+# else
|
||||
+# include <byteswap.h>
|
||||
+# 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[] = {
|
Loading…
x
Reference in New Issue
Block a user