File: nix-0.30.diff

package info (click to toggle)
rust-zbus-1 1.9.3-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 864 kB
  • sloc: makefile: 2
file content (26 lines) | stat: -rw-r--r-- 889 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: zbus-1/Cargo.toml
===================================================================
--- zbus-1.orig/Cargo.toml
+++ zbus-1/Cargo.toml
@@ -53,7 +53,7 @@ version = "0.3.8"
 version = "1.0.2"
 
 [dependencies.nix]
-version = "0.29"
+version = ">= 0.29, < 1.0"
 features = ["poll", "user", "socket", "uio"]
 
 [dependencies.once_cell]
Index: zbus-1/src/utils.rs
===================================================================
--- zbus-1.orig/src/utils.rs
+++ zbus-1/src/utils.rs
@@ -22,7 +22,7 @@ pub(crate) fn wait_on(fd: RawFd, flags:
     let fd = unsafe { BorrowedFd::borrow_raw(fd) };
     let pollfd = PollFd::new(fd , flags);
     loop {
-        match poll(&mut [pollfd], PollTimeout::NONE) {
+        match poll(&mut [pollfd.clone()], PollTimeout::NONE) {
             Ok(_) => break,
             Err(e) => {
                 if e == Errno::EAGAIN || e == Errno::EINTR {