]> git.lizzy.rs Git - rust.git/commitdiff
load_self() needs to be public
authorMichael Neumann <mneumann@ntecs.de>
Fri, 19 Dec 2014 21:19:37 +0000 (22:19 +0100)
committerMichael Neumann <mneumann@ntecs.de>
Fri, 19 Dec 2014 21:19:37 +0000 (22:19 +0100)
src/libstd/sys/unix/os.rs

index 4c1ec4cc85890f629779035489140d7194d27782..f1663df6a9b5c2088e4546893309f3e3add077af 100644 (file)
@@ -199,7 +199,7 @@ pub fn load_self() -> Option<Vec<u8>> {
 }
 
 #[cfg(target_os = "dragonfly")]
-fn load_self() -> Option<Vec<u8>> {
+pub fn load_self() -> Option<Vec<u8>> {
     use std::io;
 
     match io::fs::readlink(&Path::new("/proc/curproc/file")) {