Fix open on FreeBSD

This commit is contained in:
Chiu-Hsiang Hsu 2016-08-23 13:53:24 +08:00
parent 880b7b811e
commit 869803f60e
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ pub fn open(url: &str) {
}
}
#[cfg(target_os="macos")]
#[cfg(any(target_os="macos", target_os="freebsd"))]
pub fn open(url: &str) {
use std;
let _ = std::process::Command::new("open").arg(url).spawn();