Added
Link Here
|
1 |
https://github.com/ifreund/waylock/commit/e8ba2a976fc5 |
2 |
|
3 |
--- README.md.orig 2023-01-08 18:59:32 UTC |
4 |
+++ README.md |
5 |
@@ -27,7 +27,7 @@ installed: |
6 |
To compile waylock first ensure that you have the following dependencies |
7 |
installed: |
8 |
|
9 |
-- [zig](https://ziglang.org/download/) 0.9 |
10 |
+- [zig](https://ziglang.org/download/) 0.10 |
11 |
- wayland |
12 |
- wayland-protocols |
13 |
- xkbcommon |
14 |
--- build.zig.orig 2023-01-08 18:59:32 UTC |
15 |
+++ build.zig |
16 |
@@ -92,7 +92,7 @@ pub fn build(b: *zbs.Builder) !void { |
17 |
|
18 |
waylock.addPackage(.{ |
19 |
.name = "wayland", |
20 |
- .path = .{ .generated = &scanner.result }, |
21 |
+ .source = .{ .generated = &scanner.result }, |
22 |
}); |
23 |
waylock.step.dependOn(&scanner.step); |
24 |
waylock.addPackagePath("xkbcommon", "deps/zig-xkbcommon/src/xkbcommon.zig"); |
25 |
--- src/auth.zig.orig 2023-01-08 18:59:32 UTC |
26 |
+++ src/auth.zig |
27 |
@@ -103,7 +103,7 @@ pub fn run(conn: Connection) noreturn { |
28 |
|
29 |
const end_result = pamh.end(setcred_result); |
30 |
if (end_result != .success) { |
31 |
- log.err("PAM deinitialization failed: {s}", .{end_result}); |
32 |
+ log.err("PAM deinitialization failed: {s}", .{end_result.description()}); |
33 |
} |
34 |
|
35 |
os.exit(0); |
36 |
@@ -118,7 +118,7 @@ pub fn run(conn: Connection) noreturn { |
37 |
if (auth_result == .abort) { |
38 |
const end_result = pamh.end(auth_result); |
39 |
if (end_result != .success) { |
40 |
- log.err("PAM deinitialization failed: {s}", .{end_result}); |
41 |
+ log.err("PAM deinitialization failed: {s}", .{end_result.description()}); |
42 |
} |
43 |
os.exit(1); |
44 |
} |
45 |
--- src/pam.zig.orig 2023-01-08 18:59:32 UTC |
46 |
+++ src/pam.zig |
47 |
@@ -41,7 +41,7 @@ pub const Conv = extern struct { |
48 |
}; |
49 |
|
50 |
pub const Conv = extern struct { |
51 |
- conv: fn ( |
52 |
+ conv: *const fn ( |
53 |
num_msg: c_int, |
54 |
/// Note: This matches the Linux-PAM API, apparently Solaris PAM differs |
55 |
/// in how the msg argument is used. |