Module: wine Branch: master Commit: 25d3bc3064da2006210236feb49a388a48a12034 URL: http://source.winehq.org/git/wine.git/?a=commit;h=25d3bc3064da2006210236feb4...
Author: Hans Leidekker hans@codeweavers.com Date: Wed May 10 14:28:12 2017 +0200
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
---
dlls/netprofm/list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/netprofm/list.c b/dlls/netprofm/list.c index 8847758..d82ae36 100644 --- a/dlls/netprofm/list.c +++ b/dlls/netprofm/list.c @@ -18,6 +18,8 @@ */
#define COBJMACROS +#define NONAMELESSUNION +#define NONAMELESSSTRUCT
#include "config.h" #include <stdarg.h> @@ -1693,7 +1695,7 @@ static void init_networks( struct list_manager *mgr ) struct network *network; struct connection *connection;
- id.Data1 = aa->IfIndex; + id.Data1 = aa->u.s.IfIndex;
/* assume a one-to-one mapping between networks and connections */ if (!(network = create_network( &id ))) goto done;