From: Michal Kazior Date: Sat, 20 Jul 2013 14:17:32 +0000 (+0300) Subject: Add missing host_to_le32() for big endian hosts X-Git-Tag: aosp-kk-from-upstream~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182b2e535c913eb99ba401f2b3269f3e9a69859a;p=thirdparty%2Fhostap.git Add missing host_to_le32() for big endian hosts Compiling hostapd with VHT enabled on a big endian machine resulted in an undefined symbol error. Fix this by defining the missing macro. Signed-hostap: Michal Kazior --- diff --git a/src/utils/common.h b/src/utils/common.h index e4f703130..29f0b9535 100644 --- a/src/utils/common.h +++ b/src/utils/common.h @@ -205,6 +205,7 @@ static inline unsigned int wpa_swap_32(unsigned int v) #define be_to_host16(n) (n) #define host_to_be16(n) (n) #define le_to_host32(n) bswap_32(n) +#define host_to_le32(n) bswap_32(n) #define be_to_host32(n) (n) #define host_to_be32(n) (n) #define le_to_host64(n) bswap_64(n)