diff options
author | sam <sam@FreeBSD.org> | 2005-06-07 23:33:13 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-06-07 23:33:13 +0000 |
commit | 7b035d47f2dbfa8860fdf691ed54e491b5b76010 (patch) | |
tree | ffb4134527bdfc728983836c60df92fd50eb7590 /contrib | |
parent | b04dca4ae598a9632b531302224e6fa953371b8d (diff) | |
download | FreeBSD-src-7b035d47f2dbfa8860fdf691ed54e491b5b76010.zip FreeBSD-src-7b035d47f2dbfa8860fdf691ed54e491b5b76010.tar.gz |
fix byte order handling: FreeBSD != Linux
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/wpa_supplicant/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/wpa_supplicant/common.h b/contrib/wpa_supplicant/common.h index aa6429c..a075e51 100644 --- a/contrib/wpa_supplicant/common.h +++ b/contrib/wpa_supplicant/common.h @@ -1,3 +1,5 @@ +/* $FreeBSD$ */ + #ifndef COMMON_H #define COMMON_H @@ -8,8 +10,12 @@ #ifdef __FreeBSD__ #include <sys/types.h> #include <sys/endian.h> +#define __BYTE_ORDER _BYTE_ORDER +#define __LITTLE_ENDIAN _LITTLE_ENDIAN +#define __BIG_ENDIAN _BIG_ENDIAN #define bswap_16 bswap16 #define bswap_32 bswap32 +#define bswap_64 bswap64 #endif #ifdef CONFIG_NATIVE_WINDOWS |