Bug 1103858 - Enable FreeBSD wifi scanner on DragonFly. r=ted, r=jdm

This commit is contained in:
Jan Beich 2014-11-24 00:10:00 -05:00
parent 404a3d0bf1
commit ca760fcf9a
3 changed files with 6 additions and 2 deletions

View File

@ -8313,7 +8313,7 @@ case "$OS_TARGET" in
NECKO_WIFI=1
fi
;;
Darwin|FreeBSD|SunOS|WINNT)
Darwin|DragonFly|FreeBSD|SunOS|WINNT)
NECKO_WIFI=1
;;
Linux)

View File

@ -35,7 +35,7 @@ if CONFIG['OS_ARCH'] == 'Darwin':
UNIFIED_SOURCES += [
'osx_corewlan.mm',
]
elif CONFIG['OS_ARCH'] == 'FreeBSD':
elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'):
UNIFIED_SOURCES += [
'nsWifiScannerFreeBSD.cpp',
]

View File

@ -13,7 +13,11 @@
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_media.h>
#ifdef __DragonFly__
#include <netproto/802_11/ieee80211_ioctl.h>
#else
#include <net80211/ieee80211_ioctl.h>
#endif
#include <ifaddrs.h>
#include <string.h>