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);