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

Alexandre Julliard julliard at winehq.org
Wed May 10 17:23:15 CDT 2017


Module: wine
Branch: master
Commit: 25d3bc3064da2006210236feb49a388a48a12034
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=25d3bc3064da2006210236feb49a388a48a12034

Author: Hans Leidekker <hans at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list