From b94d407de5bf30ef119453475f8e11cbccf9a0b7 Mon Sep 17 00:00:00 2001 From: Shih-Chiang Chien Date: Tue, 12 Nov 2013 13:54:17 +0100 Subject: [PATCH] Bug 936801 - use forward declaration for NetAddr instead of include DNS.h. r=mcmanus. --- dom/network/interfaces/nsIUDPSocketChild.idl | 6 +++++- netwerk/base/public/nsINetAddr.idl | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dom/network/interfaces/nsIUDPSocketChild.idl b/dom/network/interfaces/nsIUDPSocketChild.idl index 09035ad6af1..c70c2faa2fb 100644 --- a/dom/network/interfaces/nsIUDPSocketChild.idl +++ b/dom/network/interfaces/nsIUDPSocketChild.idl @@ -8,7 +8,11 @@ interface nsIUDPSocketInternal; %{ C++ -#include "mozilla/net/DNS.h" +namespace mozilla { +namespace net { +union NetAddr; +} +} %} native NetAddr(mozilla::net::NetAddr); [ptr] native NetAddrPtr(mozilla::net::NetAddr); diff --git a/netwerk/base/public/nsINetAddr.idl b/netwerk/base/public/nsINetAddr.idl index c41a9b71f19..c7388354d34 100644 --- a/netwerk/base/public/nsINetAddr.idl +++ b/netwerk/base/public/nsINetAddr.idl @@ -7,7 +7,11 @@ #include "nsISupports.idl" %{ C++ -#include "mozilla/net/DNS.h" +namespace mozilla { +namespace net { +union NetAddr; +} +} %} native NetAddr(mozilla::net::NetAddr);