diff --git a/vlib/clipboard/clipboard_test.v b/vlib/clipboard/clipboard_test.v index 3c507cc3e3..6c97f44e17 100644 --- a/vlib/clipboard/clipboard_test.v +++ b/vlib/clipboard/clipboard_test.v @@ -15,14 +15,14 @@ fn run_test(is_primary bool) { } fn test_primary() { - $if linux { + $if linux || freebsd { // run_test(true) return } } fn test_clipboard() { - $if linux { + $if linux || freebsd { return } run_test(false) diff --git a/vlib/clipboard/x11/clipboard.c.v b/vlib/clipboard/x11/clipboard.c.v index 2dee2f40b3..95cf171ebf 100644 --- a/vlib/clipboard/x11/clipboard.c.v +++ b/vlib/clipboard/x11/clipboard.c.v @@ -7,6 +7,8 @@ import sync import math #flag -lX11 +#flag freebsd -I/usr/local/include +#flag freebsd -L/usr/local/lib -lX11 #include // X11