mirror of
https://github.com/fairyglade/ly.git
synced 2026-02-04 16:34:55 +00:00
Fix platform-specific bugs for FreeBSD compilation
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -20,7 +20,10 @@ const pwd = @cImport({
|
||||
@cInclude("pwd.h");
|
||||
// We include a FreeBSD-specific header here since login_cap.h references
|
||||
// the passwd struct directly, so we can't import it separately
|
||||
if (builtin.os.tag == .freebsd) @cInclude("login_cap.h");
|
||||
if (builtin.os.tag == .freebsd) {
|
||||
@cInclude("sys/types.h");
|
||||
@cInclude("login_cap.h");
|
||||
}
|
||||
});
|
||||
|
||||
const stdlib = @cImport({
|
||||
|
||||
Reference in New Issue
Block a user