summaryrefslogtreecommitdiff
path: root/net/xfce4-wavelan-plugin/patches/patch-aa
blob: d2bef74dbc3e244a1d217c0c46b5ae95ecad3040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$NetBSD: patch-aa,v 1.3 2007/04/16 15:42:03 joerg Exp $

--- panel-plugin/wi_bsd.c.orig	2007-04-16 14:57:08.000000000 +0000
+++ panel-plugin/wi_bsd.c
@@ -24,7 +24,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) 
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__)
 
 #include <sys/types.h>
 #include <sys/cdefs.h>
@@ -43,22 +43,24 @@
 #if __FreeBSD_version >= 500033
 #include <sys/endian.h>
 #endif
+#elif defined(__DragonFly__)
+#include <net/if_var.h>
+#include <net/ethernet.h>
+#include <netproto/802_11/if_wavelan_ieee.h>
+#include <sys/endian.h>
 #else
 #include <netinet/in.h>
 #include <netinet/if_ether.h>
 #ifdef __NetBSD__
-#include <net80211/ieee80211.h>
-#include <net80211/ieee80211_ioctl.h>
-#include <dev/ic/wi_ieee.h>
+#  include <net80211/ieee80211.h>
+#  include <net80211/ieee80211_ioctl.h>
+#  include <dev/ic/wi_ieee.h>
+#elif defined(__OpenBSD__)
+#  include <net/if_ieee80211.h>
+#  include <dev/ic/if_wi_ieee.h>
+#  define le16toh(x) letoh16(x)
 #else
-#if !defined(__OpenBSD__)
-#include <dev/pcmcia/if_wavelan_ieee.h>
-#endif
-#endif
-#ifdef __OpenBSD__
-#include <net/if_ieee80211.h>
-#include <dev/ic/if_wi_ieee.h>
-#define le16toh(x) letoh16(x)
+#  include <dev/pcmcia/if_wavelan_ieee.h>
 #endif
 #endif