Incorporate some FreeBSD authentication patches

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2024-07-28 13:15:49 +02:00
parent 19d4b195f3
commit 2dd83b41e8
2 changed files with 28 additions and 9 deletions

View File

@@ -12,6 +12,7 @@ pub const utmp = @cImport({
@cInclude("utmpx.h");
});
// Exists for X11 support only
pub const xcb = @cImport({
@cInclude("xcb/xcb.h");
});
@@ -20,6 +21,11 @@ pub const unistd = @cImport({
@cInclude("unistd.h");
});
// Exists for FreeBSD only
pub const logincap = @cImport({
@cInclude("login_cap.h");
});
pub const c_size = u64;
pub const c_uid = u32;
pub const c_gid = u32;