diff options
author | Matt T. Proud <matt.proud@gmail.com> | 2018-04-03 08:52:41 +0200 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-04-14 10:17:50 -0700 |
commit | 1b7ffea136f55236729258ddbc6841282de91ae9 (patch) | |
tree | cd26df7193b0eb94b93768fd1bf329a724d3326c /src/tty.rs | |
parent | 3d75c491912952d2a18fb34ab81221b1bded07d5 (diff) | |
download | alacritty-1b7ffea136f55236729258ddbc6841282de91ae9.tar.gz alacritty-1b7ffea136f55236729258ddbc6841282de91ae9.zip |
alacritty: add support for OpenBSD.
This commit expands the conditional compilation directives to support
building Alacritty for OpenBSD. The build succeeds, and Alacritty runs
without issue once https://github.com/rust-lang/libc/pull/957 has been
merged and added to a versioned libc release.
This has been tested on the recently-released OpenBSD 6.3 on amd64 with
rustc 1.24.0 from its standard ports tree.
Diffstat (limited to 'src/tty.rs')
-rw-r--r-- | src/tty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ fn openpty(rows: u8, cols: u8) -> (c_int, c_int) { (master, slave) } -#[cfg(any(target_os = "macos",target_os = "freebsd"))] +#[cfg(any(target_os = "macos",target_os = "freebsd",target_os = "openbsd"))] fn openpty(rows: u8, cols: u8) -> (c_int, c_int) { let mut master: c_int = 0; let mut slave: c_int = 0; |