gallium/osmesa: link with winsock2 library on Windows
authorBrian Paul <brianp@vmware.com>
Fri, 13 Apr 2018 21:34:23 +0000 (15:34 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 14 Apr 2018 01:06:55 +0000 (19:06 -0600)
To fix the MSVC build.  The build broke because we started to compile
the ddebug code on Windows after the mtypes.h changes.  Building ddebug
caused us to also use the u_network.c code for the first time.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/targets/osmesa/SConscript

index f49f1fe538efcf5120d3531a763e12dfa85d0f8e..3df5c50097632258a0b508efb5b3eea47d9e2161 100644 (file)
@@ -39,6 +39,9 @@ if env['platform'] == 'windows':
         sources += ['osmesa.mingw.def']
     else:
         sources += ['osmesa.def']
+    # Link with winsock2 library
+    env.Append(LIBS = ['ws2_32'])
+
 
 gallium_osmesa = env.SharedLibrary(
     target ='osmesa',