Skip to content

Commit

Permalink
Build with nix-rust master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
junhochoi committed Mar 8, 2022
1 parent b7670a0 commit 907a9dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions apps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ log = "0.4"
ring = "0.16"
quiche = { path = "../quiche" }
libc = "0.2"
# Needs update once merged to upstream
# https://github.com/nix-rust/nix/pull/1564
nix = { git = "https://github.com/ghedo/nix.git", branch = "so_txtime" }

[profile.release]
debug = true
# TODO: Update when there is a release tag
nix = { git = "https://github.com/nix-rust/nix.git", branch = "master" }

[lib]
crate-type = ["lib"]
4 changes: 2 additions & 2 deletions apps/src/bin/quiche-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ fn set_txtime_sockopt(sock: &net::UdpSocket) -> io::Result<()> {
use nix::sys::socket::sockopt::TxTime;
use std::os::unix::io::AsRawFd;

let config = libc::sock_txtime {
let config = nix::libc::sock_txtime {
clockid: libc::CLOCK_MONOTONIC,
flags: 0,
};
Expand All @@ -637,7 +637,7 @@ fn set_txtime_sockopt(_: &net::UdpSocket) -> io::Result<()> {
/// sendmsg syscall also includes the time the packet needs to be
/// sent by the kernel in msghdr.
///
/// Note that sendmsg syscal is used only on linux platforms.
/// Note that sendmsg syscall is used only on linux platforms.
#[cfg(target_os = "linux")]
fn send_to(
sock: &mio::net::UdpSocket, send_buf: &[u8], send_info: &quiche::SendInfo,
Expand Down

0 comments on commit 907a9dd

Please sign in to comment.