netprofm: Fix compilation on systems that don't support nameless unions.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-05-10 14:28:12 +02:00 committed by Alexandre Julliard
parent c6e469347c
commit 25d3bc3064
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@
*/ */
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
@ -1693,7 +1695,7 @@ static void init_networks( struct list_manager *mgr )
struct network *network; struct network *network;
struct connection *connection; struct connection *connection;
id.Data1 = aa->IfIndex; id.Data1 = aa->u.s.IfIndex;
/* assume a one-to-one mapping between networks and connections */ /* assume a one-to-one mapping between networks and connections */
if (!(network = create_network( &id ))) goto done; if (!(network = create_network( &id ))) goto done;