From 74a28adba2a07d56bce9592f24196442192e68e0 Mon Sep 17 00:00:00 2001 From: Kirill Zdornyy Date: Tue, 1 Mar 2016 18:06:13 -0800 Subject: Fix this_platform_is_not_supported on OpenBSD. I followed the steps of @mneumann. --- src/api/caca/mod.rs | 2 +- src/api/dlopen.rs | 2 +- src/api/egl/ffi.rs | 2 +- src/api/egl/mod.rs | 2 +- src/api/glx/mod.rs | 2 +- src/api/osmesa/mod.rs | 2 +- src/api/wayland/mod.rs | 2 +- src/api/x11/mod.rs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/api') diff --git a/src/api/caca/mod.rs b/src/api/caca/mod.rs index e73fa6c..63b4b9c 100644 --- a/src/api/caca/mod.rs +++ b/src/api/caca/mod.rs @@ -1,4 +1,4 @@ -#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))] +#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] #![allow(unused_variables, dead_code)] use libc; diff --git a/src/api/dlopen.rs b/src/api/dlopen.rs index bacdd2c..0104913 100644 --- a/src/api/dlopen.rs +++ b/src/api/dlopen.rs @@ -1,4 +1,4 @@ -#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))] +#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] #![allow(dead_code)] use std::os::raw::{c_void, c_char, c_int}; diff --git a/src/api/egl/ffi.rs b/src/api/egl/ffi.rs index ae02e30..9ed32c8 100644 --- a/src/api/egl/ffi.rs +++ b/src/api/egl/ffi.rs @@ -33,5 +33,5 @@ pub type EGLNativeWindowType = winapi::HWND; pub type EGLNativeWindowType = *const libc::c_void; #[cfg(target_os = "android")] pub type EGLNativeWindowType = *const libc::c_void; -#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] +#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] pub type EGLNativeWindowType = *const libc::c_void; diff --git a/src/api/egl/mod.rs b/src/api/egl/mod.rs index ca3dc2a..b9e4e38 100644 --- a/src/api/egl/mod.rs +++ b/src/api/egl/mod.rs @@ -1,5 +1,5 @@ #![cfg(any(target_os = "windows", target_os = "linux", target_os = "android", - target_os = "dragonfly", target_os = "freebsd"))] + target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] #![allow(unused_variables)] use ContextError; diff --git a/src/api/glx/mod.rs b/src/api/glx/mod.rs index 95b6f99..dcdc21c 100644 --- a/src/api/glx/mod.rs +++ b/src/api/glx/mod.rs @@ -1,4 +1,4 @@ -#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))] +#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] use ContextError; use CreationError; diff --git a/src/api/osmesa/mod.rs b/src/api/osmesa/mod.rs index 7ef243a..f66dce5 100644 --- a/src/api/osmesa/mod.rs +++ b/src/api/osmesa/mod.rs @@ -1,4 +1,4 @@ -#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))] +#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] extern crate osmesa_sys; diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs index b6a2602..77f018e 100644 --- a/src/api/wayland/mod.rs +++ b/src/api/wayland/mod.rs @@ -1,4 +1,4 @@ -#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))] +#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] pub use self::monitor::{MonitorId, get_available_monitors, get_primary_monitor}; pub use self::window::{PollEventsIterator, WaitEventsIterator, Window, WindowProxy}; diff --git a/src/api/x11/mod.rs b/src/api/x11/mod.rs index 54626fe..3dc31b5 100644 --- a/src/api/x11/mod.rs +++ b/src/api/x11/mod.rs @@ -1,4 +1,4 @@ -#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))] +#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] pub use self::monitor::{MonitorId, get_available_monitors, get_primary_monitor}; pub use self::window::{Window, XWindow, PollEventsIterator, WaitEventsIterator, Context, WindowProxy}; -- cgit v1.2.3