{core,sysaudio}: update to latest Zig API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c89a972651
commit
923cce1fc3
2 changed files with 2 additions and 2 deletions
|
|
@ -209,7 +209,7 @@ pub fn Sdk(comptime deps: anytype) type {
|
|||
if (app.res_dirs) |res_dirs| {
|
||||
for (res_dirs) |res| {
|
||||
const install_res = app.b.addInstallDirectory(.{
|
||||
.source_dir = res,
|
||||
.source_dir = .{ .path = res },
|
||||
.install_dir = app.getInstallStep().?.dest_dir,
|
||||
.install_subdir = std.fs.path.basename(res),
|
||||
.exclude_extensions = &.{},
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ pub const Context = struct {
|
|||
var i: usize = 0;
|
||||
var evt: *inotify_event = undefined;
|
||||
while (i < buf.len) : (i += @sizeOf(inotify_event) + evt.len) {
|
||||
evt = @as(*inotify_event, @ptrCast(@alignCast(4, buf[i..])));
|
||||
evt = @as(*inotify_event, @ptrCast(@alignCast(buf[i..])));
|
||||
const evt_name = @as([*]u8, @ptrCast(buf[i..]))[@sizeOf(inotify_event) .. @sizeOf(inotify_event) + 8];
|
||||
|
||||
if (evt.mask & std.os.linux.IN.ISDIR != 0 or !std.mem.startsWith(u8, evt_name, "pcm"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue