Kaynağa Gözat

header/sys_un: Set sockaddr_un members to public.

Future commits will make use of this, in order to support AF_UNIX
sockets.
Tiago Lam 5 yıl önce
ebeveyn
işleme
2bc667f71c
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/header/sys_un/mod.rs

+ 2 - 2
src/header/sys_un/mod.rs

@@ -2,6 +2,6 @@ use crate::{header::sys_socket::sa_family_t, platform::types::*};
 
 #[repr(C)]
 pub struct sockaddr_un {
-    sun_family: sa_family_t,
-    sun_path: [c_char; 108],
+    pub sun_family: sa_family_t,
+    pub sun_path: [c_char; 108],
 }