summaryrefslogtreecommitdiffstats
path: root/third_party/rust/mio/src/sys/shell/udp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/mio/src/sys/shell/udp.rs')
-rw-r--r--third_party/rust/mio/src/sys/shell/udp.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/rust/mio/src/sys/shell/udp.rs b/third_party/rust/mio/src/sys/shell/udp.rs
new file mode 100644
index 0000000000..48ccac740f
--- /dev/null
+++ b/third_party/rust/mio/src/sys/shell/udp.rs
@@ -0,0 +1,10 @@
+use std::io;
+use std::net::{self, SocketAddr};
+
+pub fn bind(_: SocketAddr) -> io::Result<net::UdpSocket> {
+ os_required!()
+}
+
+pub(crate) fn only_v6(_: &net::UdpSocket) -> io::Result<bool> {
+ os_required!()
+}