@@ -9,9 +9,9 @@ extern crate core;
9
9
mod win32;
10
10
#[ cfg( target_os = "macos" ) ]
11
11
mod cg;
12
- #[ cfg( target_os = "linux" ) ]
12
+ #[ cfg( any ( target_os = "linux" , target_os = "freebsd" ) ) ]
13
13
mod x11;
14
- #[ cfg( target_os = "linux" ) ]
14
+ #[ cfg( any ( target_os = "linux" , target_os = "freebsd" ) ) ]
15
15
mod wayland;
16
16
#[ cfg( target_arch = "wasm32" ) ]
17
17
mod web;
@@ -44,9 +44,9 @@ impl<W: HasRawWindowHandle + HasRawDisplayHandle> GraphicsContext<W> {
44
44
let raw_display_handle = window. raw_display_handle ( ) ;
45
45
46
46
let imple: Box < dyn GraphicsContextImpl > = match ( raw_window_handle, raw_display_handle) {
47
- #[ cfg( target_os = "linux" ) ]
47
+ #[ cfg( any ( target_os = "linux" , target_os = "freebsd" ) ) ]
48
48
( RawWindowHandle :: Xlib ( xlib_window_handle) , RawDisplayHandle :: Xlib ( xlib_display_handle) ) => Box :: new ( x11:: X11Impl :: new ( xlib_window_handle, xlib_display_handle) ?) ,
49
- #[ cfg( target_os = "linux" ) ]
49
+ #[ cfg( any ( target_os = "linux" , target_os = "freebsd" ) ) ]
50
50
( RawWindowHandle :: Wayland ( wayland_window_handle) , RawDisplayHandle :: Wayland ( wayland_display_handle) ) => Box :: new ( wayland:: WaylandImpl :: new ( wayland_window_handle, wayland_display_handle) ?) ,
51
51
#[ cfg( target_os = "windows" ) ]
52
52
( RawWindowHandle :: Win32 ( win32_handle) , _) => Box :: new ( win32:: Win32Impl :: new ( & win32_handle) ?) ,
0 commit comments