From 28fdc021434d3e94a2305e0e1e116dee6c4f9719 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Sat, 10 Oct 2015 16:18:20 +0200 Subject: [PATCH] Issue #7905: Restore "headless" build on not Linux platforms. --- ports/glutin/window.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index d82c129e420..9b851384141 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -824,6 +824,11 @@ impl WindowMethods for Window { NativeDisplay::new(ptr::null_mut()) } + #[cfg(not(target_os = "linux"))] + fn native_display(&self) -> NativeDisplay { + NativeDisplay::new() + } + /// Helper function to handle keyboard events. fn handle_key(&self, _: Key, _: constellation_msg::KeyModifiers) { }