fixes bug 226241 "Anonymous unions may only contain non-static data members and not define types." r=timeless sr=bryner

This commit is contained in:
darin%meer.net 2004-04-16 05:46:27 +00:00
parent 54acdf7af3
commit 09330ed9b7

View File

@ -114,20 +114,24 @@ protected:
static void* PR_CALLBACK HandlePACLoadEvent(PLEvent* aEvent);
static void PR_CALLBACK DestroyPACLoadEvent(PLEvent* aEvent);
struct HostInfoIP {
PRUint16 family;
PRUint16 mask_len;
PRIPv6Addr addr; // possibly IPv4-mapped address
};
struct HostInfoName {
char *host;
PRUint32 host_len;
};
// simplified array of filters defined by this struct
struct HostInfo {
PRBool is_ipaddr;
PRInt32 port;
union {
struct {
PRUint16 family;
PRUint16 mask_len;
PRIPv6Addr addr; // possibly IPv4-mapped address
} ip;
struct {
char *host;
PRUint32 host_len;
} name;
HostInfoIP ip;
HostInfoName name;
};
HostInfo()