mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
parent
b586913598
commit
2531de02eb
85 changed files with 68 additions and 1357 deletions
|
|
@ -8,10 +8,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
#include <errno.h>
|
||||
#ifndef MOZ_WIDGET_GONK
|
||||
#include <ifaddrs.h>
|
||||
#include <net/if.h>
|
||||
#endif
|
||||
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsIObserverService.h"
|
||||
|
|
@ -28,10 +24,6 @@
|
|||
#include "mozilla/Sprintf.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
#include <cutils/properties.h>
|
||||
#endif
|
||||
|
||||
/* a shorter name that better explains what it does */
|
||||
#define EINTR_RETRY(x) MOZ_TEMP_FAILURE_RETRY(x)
|
||||
|
||||
|
|
@ -210,9 +202,6 @@ void nsNotifyAddrListener::calculateNetworkId(void)
|
|||
//
|
||||
void nsNotifyAddrListener::checkLink(void)
|
||||
{
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
// b2g instead has NetworkManager.js which handles UP/DOWN
|
||||
#else
|
||||
struct ifaddrs *list;
|
||||
struct ifaddrs *ifa;
|
||||
bool link = false;
|
||||
|
|
@ -247,7 +236,6 @@ void nsNotifyAddrListener::checkLink(void)
|
|||
SendEvent(mLinkUp ?
|
||||
NS_NETWORK_LINK_DATA_UP : NS_NETWORK_LINK_DATA_DOWN);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void nsNotifyAddrListener::OnNetlinkMessage(int aNetlinkSocket)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue