mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
bsd: add missing os.IFNAMESIZE
- based on system API value IF_NAMESIZE - unblocks `zig test lib/std/std.zig`
This commit is contained in:
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user