Commit 92a52611 authored by Jon Turney's avatar Jon Turney Committed by Adam Jackson

meson: Link with ws2_32 for socket functions on Windows

parent d21224cd
......@@ -14,6 +14,7 @@ xwin_clipboard = static_library(
dependencies: [
dependency('x11'),
dependency('xfixes'),
socket_dep,
],
)
......
......@@ -525,6 +525,12 @@ if get_option('xselinux') != 'false'
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')
top_srcdir_inc = include_directories('.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment