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

Alexandre Julliard julliard at winehq.org
Thu Jul 20 12:11:30 CDT 2017


Module: wine
Branch: stable
Commit: d1706e04444870333d0ba3e1ecbe19fbd84f8316
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d1706e04444870333d0ba3e1ecbe19fbd84f8316

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>
(cherry picked from commit 25d3bc3064da2006210236feb49a388a48a12034)
Signed-off-by: Michael Stefaniuc <mstefani 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 33b2fa6..745c8e8 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