Skip to content

Commit 20c88dd

Browse files
committed
Remove passcred for emscripten
1 parent 3efcf72 commit 20c88dd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

library/std/src/sys/unix/ext/net/datagram.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ impl UnixDatagram {
757757
/// Ok(())
758758
/// }
759759
/// ```
760-
#[cfg(any(doc, target_os = "android", target_os = "emscripten", target_os = "linux",))]
760+
#[cfg(any(doc, target_os = "android", target_os = "linux",))]
761761
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
762762
pub fn set_passcred(&self, passcred: bool) -> io::Result<()> {
763763
self.0.set_passcred(passcred)
@@ -769,7 +769,7 @@ impl UnixDatagram {
769769
/// Get the socket option `SO_PASSCRED`.
770770
///
771771
/// [`set_passcred`]: UnixDatagram::set_passcred
772-
#[cfg(any(doc, target_os = "android", target_os = "emscripten", target_os = "linux",))]
772+
#[cfg(any(doc, target_os = "android", target_os = "linux",))]
773773
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
774774
pub fn passcred(&self) -> io::Result<bool> {
775775
self.0.passcred()

library/std/src/sys/unix/ext/net/stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ impl UnixStream {
375375
/// Ok(())
376376
/// }
377377
/// ```
378-
#[cfg(any(doc, target_os = "android", target_os = "emscripten", target_os = "linux",))]
378+
#[cfg(any(doc, target_os = "android", target_os = "linux",))]
379379
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
380380
pub fn set_passcred(&self, passcred: bool) -> io::Result<()> {
381381
self.0.set_passcred(passcred)
@@ -387,7 +387,7 @@ impl UnixStream {
387387
/// Get the socket option `SO_PASSCRED`.
388388
///
389389
/// [`set_passcred`]: UnixStream::set_passcred
390-
#[cfg(any(doc, target_os = "android", target_os = "emscripten", target_os = "linux",))]
390+
#[cfg(any(doc, target_os = "android", target_os = "linux",))]
391391
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
392392
pub fn passcred(&self) -> io::Result<bool> {
393393
self.0.passcred()

library/std/src/sys/unix/net.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ impl Socket {
341341
Ok(raw != 0)
342342
}
343343

344-
#[cfg(any(target_os = "android", target_os = "emscripten", target_os = "linux",))]
344+
#[cfg(any(target_os = "android", target_os = "linux",))]
345345
pub fn set_passcred(&self, passcred: bool) -> io::Result<()> {
346346
setsockopt(self, libc::SOL_SOCKET, libc::SO_PASSCRED, passcred as libc::c_int)
347347
}
348348

349-
#[cfg(any(target_os = "android", target_os = "emscripten", target_os = "linux",))]
349+
#[cfg(any(target_os = "android", target_os = "linux",))]
350350
pub fn passcred(&self) -> io::Result<bool> {
351351
let passcred: libc::c_int = getsockopt(self, libc::SOL_SOCKET, libc::SO_PASSCRED)?;
352352
Ok(passcred != 0)

0 commit comments

Comments
 (0)