diff --git a/glib/src/functions.rs b/glib/src/functions.rs index 69bec08e56eb..a483f0db34be 100644 --- a/glib/src/functions.rs +++ b/glib/src/functions.rs @@ -223,7 +223,7 @@ pub fn charset() -> (bool, Option<&'static GStr>) { #[cfg(unix)] #[doc(alias = "g_unix_open_pipe")] -pub fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error> { +pub unsafe fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error> { unsafe { let mut fds = [0, 2]; let mut error = ptr::null_mut();