File: relax-rustix.patch

package info (click to toggle)
rust-smithay-client-toolkit 0.19.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 932 kB
  • sloc: makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,063 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -72,7 +72,7 @@
 version = "0.9.0"
 
 [dependencies.rustix]
-version = "0.38.15"
+version = "1"
 features = [
     "fs",
     "pipe",
--- a/src/shm/raw.rs
+++ b/src/shm/raw.rs
@@ -5,7 +5,7 @@
 
 use rustix::{
     io::Errno,
-    shm::{Mode, ShmOFlags},
+    shm::{Mode, OFlags},
 };
 use std::{
     fs::File,
@@ -26,6 +26,8 @@
 
 use super::CreatePoolError;
 
+type ShmOFlags = OFlags;
+
 /// A raw handler for file backed shared memory pools.
 ///
 /// This type of pool will create the SHM memory pool and provide a way to resize the pool.
@@ -192,8 +194,8 @@
 
             let mode = Mode::RUSR | Mode::WUSR;
 
-            match rustix::shm::shm_open(mem_file_handle.as_str(), flags, mode) {
-                Ok(fd) => match rustix::shm::shm_unlink(mem_file_handle.as_str()) {
+            match rustix::shm::open(mem_file_handle.as_str(), flags, mode) {
+                Ok(fd) => match rustix::shm::unlink(mem_file_handle.as_str()) {
                     Ok(_) => return Ok(fd),
 
                     Err(errno) => {