3 --- src/if_media.c.orig 2006-02-24 19:16:35.000000000 +0000
6 *****************************************************************************/
8 -#if defined (__FreeBSD__) || (__OpenBSD__) || (__NetBSD__) || (__MicroBSD__) || (__APPLE__)
9 +#if defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__MicroBSD__) || defined(__APPLE__) || defined(__DragonFly__)
10 # define MEDIA_H_SUPPORTED
13 -#if defined (__OpenBSD__) || (__NetBSD__) || (__MicroBSD__) || (__APPLE__)
14 +#if defined (__OpenBSD__) || defined(__NetBSD__) || defined(__MicroBSD__) || defined(__APPLE__)
15 # define NON_FreeBSD 1
20 +# elif defined(__DragonFly__)
24 @@ -119,10 +121,8 @@ int get_if_speed (char *ifstring)
29 +#if (defined(__FreeBSD__) && __FreeBSD__ <= 4)
36 @@ -147,8 +147,8 @@ int get_if_speed (char *ifstring)
39 -#if defined(__OpenBSD__) || (__MicroBSD__) || (__NetBSD__) || (__APPLE__)
40 +#if defined(__OpenBSD__) || defined(__MicroBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__DragonFly__)
44 +#if (defined(__FreeBSD__) && __FreeBSD__ <= 4)
47 @@ -196,5 +196,5 @@ int get_if_speed (char *ifstring)
50 -#if WIRELESS && defined(__FreeBSD__) && (__FreeBSD_version >= 460102)
51 +#if WIRELESS && ((defined(__FreeBSD__) && (__FreeBSD_version >= 460102)) || defined(__DragonFly__))
52 case IFM_IEEE80211_DS22:
54 @@ -203,5 +203,6 @@ int get_if_speed (char *ifstring)
56 (defined(__FreeBSD__) && (__FreeBSD_version >= 500111)) || \
57 - (defined(__NetBSD__) && (__NetBSD_Version_ > 106020000))
58 + (defined(__NetBSD__) && (__NetBSD_Version_ > 106020000)) || \
59 + defined(__DragonFly__)
60 case IFM_IEEE80211_OFDM6: