about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-03-12 10:44:56 +1300
committerNick Cameron <ncameron@mozilla.com>2015-03-18 16:47:24 +1300
commit46aa621452b591e5c504fd85dfe514b92c49c228 (patch)
tree47d070831f78420310ab3418baa5ff91b98a0010 /src/libstd/sys/unix/stack_overflow.rs
parentea8b82e90c450febb1f26a07862a1ec89c22addd (diff)
downloadrust-46aa621452b591e5c504fd85dfe514b92c49c228.tar.gz
rust-46aa621452b591e5c504fd85dfe514b92c49c228.zip
Fix private module loophole in the 'private type in public item' check
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
-rw-r--r--src/libstd/sys/unix/stack_overflow.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/stack_overflow.rs b/src/libstd/sys/unix/stack_overflow.rs
index 1f212ea5a61..35706682047 100644
--- a/src/libstd/sys/unix/stack_overflow.rs
+++ b/src/libstd/sys/unix/stack_overflow.rs
@@ -144,7 +144,7 @@ mod imp {
         munmap(handler._data, SIGSTKSZ);
     }
 
-    type sighandler_t = *mut libc::c_void;
+    pub type sighandler_t = *mut libc::c_void;
 
     #[cfg(any(all(target_os = "linux", target_arch = "x86"), // may not match
               all(target_os = "linux", target_arch = "x86_64"),
@@ -156,7 +156,7 @@ mod imp {
               target_os = "android"))] // may not match
     mod signal {
         use libc;
-        use super::sighandler_t;
+        pub use super::sighandler_t;
 
         pub static SA_ONSTACK: libc::c_int = 0x08000000;
         pub static SA_SIGINFO: libc::c_int = 0x00000004;
@@ -210,7 +210,7 @@ mod imp {
               target_os = "openbsd"))]
     mod signal {
         use libc;
-        use super::sighandler_t;
+        pub use super::sighandler_t;
 
         pub const SA_ONSTACK: libc::c_int = 0x0001;
         pub const SA_SIGINFO: libc::c_int = 0x0040;