summaryrefslogtreecommitdiff
path: root/src/errno.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errno.rs')
-rw-r--r--src/errno.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errno.rs b/src/errno.rs
index 2d0ad6c9..0a38ab69 100644
--- a/src/errno.rs
+++ b/src/errno.rs
@@ -103,6 +103,10 @@ impl ErrnoSentinel for i64 {
fn sentinel() -> Self { -1 }
}
+impl ErrnoSentinel for *mut libc::c_void {
+ fn sentinel() -> Self { (-1 as isize) as *mut libc::c_void }
+}
+
impl error::Error for Errno {
fn description(&self) -> &str {
self.desc()