From: Brian Paul Date: Fri, 13 Apr 2018 21:34:23 +0000 (-0600) Subject: gallium/osmesa: link with winsock2 library on Windows X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a519a157b5fe5d449444c04a0429e8a24546e9c;p=mesa.git gallium/osmesa: link with winsock2 library on Windows 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 --- diff --git a/src/gallium/targets/osmesa/SConscript b/src/gallium/targets/osmesa/SConscript index f49f1fe538e..3df5c500976 100644 --- a/src/gallium/targets/osmesa/SConscript +++ b/src/gallium/targets/osmesa/SConscript @@ -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',