aboutsummaryrefslogtreecommitdiff
path: root/contrib/hostapd/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hostapd/common.h')
-rw-r--r--contrib/hostapd/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/hostapd/common.h b/contrib/hostapd/common.h
index aa6429c76b96..0f154e901bff 100644
--- a/contrib/hostapd/common.h
+++ b/contrib/hostapd/common.h
@@ -8,8 +8,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