mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix libsimpleservo build on Linux and BSD (#30865)
This commit is contained in:
parent
48a95b2471
commit
676c170b07
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ pub mod gl {
|
|||
include!(concat!(env!("OUT_DIR"), "/glx_bindings.rs"));
|
||||
}
|
||||
|
||||
let lib = match Library::new("libGL.so.1").or_else(|_| Library::new("libGL.so")) {
|
||||
let lib = match unsafe { Library::new("libGL.so.1").or_else(|_| Library::new("libGL.so")) }
|
||||
{
|
||||
Ok(lib) => lib,
|
||||
Err(_) => return Err("Can't find libGL.so, OpenGL isn't configured/installed"),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue