From 45495c3ebb61ce614649a1fb34e64537ae98fd37 Mon Sep 17 00:00:00 2001 From: Bakul Shah Date: Thu, 31 Dec 2020 01:34:46 -0800 Subject: [PATCH] clipboard: fix test on freebsd (#7735) --- vlib/clipboard/clipboard_test.v | 4 ++-- vlib/clipboard/x11/clipboard.c.v | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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