aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/wme.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2006-08-28 03:45:43 (GMT)
committerJouni Malinen <j@w1.fi>2006-08-28 03:45:43 (GMT)
commit76d580369a7896b228b0b3f759ae8bd688cf7d65 (patch)
treefa496396fd1af7aeb762cca8db7b086edaeeda43 /hostapd/wme.h
parent0bfcfd0c4428dece63afe40032f582968151f550 (diff)
downloadhostap-history-76d580369a7896b228b0b3f759ae8bd688cf7d65.zip
hostap-history-76d580369a7896b228b0b3f759ae8bd688cf7d65.tar.gz
hostap-history-76d580369a7896b228b0b3f759ae8bd688cf7d65.tar.bz2
Fixed *BSD builds (must include sys/endian.h instead of endian.h).
Diffstat (limited to 'hostapd/wme.h')
-rw-r--r--hostapd/wme.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hostapd/wme.h b/hostapd/wme.h
index d7c03be..8c20883 100644
--- a/hostapd/wme.h
+++ b/hostapd/wme.h
@@ -15,7 +15,16 @@
#ifndef WME_H
#define WME_H
+
+#ifdef __linux__
#include <endian.h>
+#endif /* __linux__ */
+
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#include <sys/types.h>
+#include <sys/endian.h>
+#endif /* defined(__FreeBSD__) || defined(__NetBSD__) ||
+ * defined(__DragonFly__) */
#define WME_OUI_TYPE 2
#define WME_OUI_SUBTYPE_INFORMATION_ELEMENT 0