meson: Link with ws2_32 for socket functions on Windows
This commit is contained in:
		
							parent
							
								
									d21224cd15
								
							
						
					
					
						commit
						92a52611f6
					
				| 
						 | 
					@ -14,6 +14,7 @@ xwin_clipboard = static_library(
 | 
				
			||||||
    dependencies: [
 | 
					    dependencies: [
 | 
				
			||||||
        dependency('x11'),
 | 
					        dependency('x11'),
 | 
				
			||||||
        dependency('xfixes'),
 | 
					        dependency('xfixes'),
 | 
				
			||||||
 | 
					        socket_dep,
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -525,6 +525,12 @@ if get_option('xselinux') != 'false'
 | 
				
			||||||
    endif
 | 
					    endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					socket_dep = []
 | 
				
			||||||
 | 
					if host_machine.system() == 'windows'
 | 
				
			||||||
 | 
					    socket_dep = meson.get_compiler('c').find_library('ws2_32')
 | 
				
			||||||
 | 
					    common_dep += socket_dep
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
glx_inc = include_directories('glx')
 | 
					glx_inc = include_directories('glx')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
top_srcdir_inc = include_directories('.')
 | 
					top_srcdir_inc = include_directories('.')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue