Add FreeBSD support

Following 7aeadb06ee
This commit is contained in:
-k
2025-06-12 21:15:11 -04:00
committed by Mitchell Hashimoto
parent 6fe72db0c4
commit e09657e263
9 changed files with 32 additions and 23 deletions

View File

@@ -99,6 +99,10 @@ const PosixPty = struct {
@cInclude("sys/ioctl.h"); // ioctl and constants
@cInclude("util.h"); // openpty()
}),
.freebsd => @cImport({
@cInclude("termios.h"); // ioctl and constants
@cInclude("libutil.h"); // openpty()
}),
else => @cImport({
@cInclude("sys/ioctl.h"); // ioctl and constants
@cInclude("pty.h");