File: open_how.patch

package info (click to toggle)
rr 5.9.0-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,060 kB
  • sloc: ansic: 66,406; cpp: 57,678; python: 4,627; asm: 1,331; sh: 576; xml: 411; makefile: 30
file content (30 lines) | stat: -rw-r--r-- 671 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
commit e0e1dce5651793f610e5ddd964d524f06584ee81
Author: Robert O'Callahan <robert@ocallahan.org>
Date:   Mon Jan 5 20:45:35 2026 +1300

    Avoid redefining `open_how`
    
    Resolves #4037

--- a/src/test/openat2.c
+++ b/src/test/openat2.c
@@ -15,7 +15,7 @@
   test_assert(filefd > 0);
   test_assert(close(filefd) == 0);
 
-  struct open_how how = {0};
+  struct rr_open_how how = {0};
   how.flags = O_CREAT | O_RDONLY;
   how.mode = 0600;
 
--- a/src/test/util.h
+++ b/src/test/util.h
@@ -431,7 +431,7 @@
 #define RR_KCMP_FILES 2
 
 /* Old systems don't have linux/openat2.h */
-struct open_how {
+struct rr_open_how {
 	__u64 flags;
 	__u64 mode;
 	__u64 resolve;