bsd: add missing os.IFNAMESIZE
- based on system API value IF_NAMESIZE - unblocks `zig test lib/std/std.zig`
This commit is contained in:
committed by
Andrew Kelley
parent
39459e78ad
commit
6724a524d4
@@ -838,6 +838,8 @@ pub const EAI = enum(c_int) {
|
||||
_,
|
||||
};
|
||||
|
||||
pub const IFNAMESIZE = 16;
|
||||
|
||||
pub const AI = struct {
|
||||
pub const PASSIVE = 0x00000001;
|
||||
pub const CANONNAME = 0x00000002;
|
||||
|
||||
@@ -483,6 +483,8 @@ pub const sockaddr = extern struct {
|
||||
};
|
||||
};
|
||||
|
||||
pub const IFNAMESIZE = 16;
|
||||
|
||||
pub const AI = struct {
|
||||
/// get address to use bind()
|
||||
pub const PASSIVE = 0x00000001;
|
||||
|
||||
@@ -388,6 +388,8 @@ pub const sockaddr = extern struct {
|
||||
};
|
||||
};
|
||||
|
||||
pub const IFNAMESIZE = 16;
|
||||
|
||||
pub const AI = struct {
|
||||
/// get address to use bind()
|
||||
pub const PASSIVE = 1;
|
||||
|
||||
Reference in New Issue
Block a user