Skip to content

Commit 6724a52

Browse files
mikdusanandrewrk
authored andcommitted
bsd: add missing os.IFNAMESIZE
- based on system API value IF_NAMESIZE - unblocks `zig test lib/std/std.zig`
1 parent 39459e7 commit 6724a52

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

lib/std/c/dragonfly.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,8 @@ pub const EAI = enum(c_int) {
838838
_,
839839
};
840840

841+
pub const IFNAMESIZE = 16;
842+
841843
pub const AI = struct {
842844
pub const PASSIVE = 0x00000001;
843845
pub const CANONNAME = 0x00000002;

lib/std/c/netbsd.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ pub const sockaddr = extern struct {
483483
};
484484
};
485485

486+
pub const IFNAMESIZE = 16;
487+
486488
pub const AI = struct {
487489
/// get address to use bind()
488490
pub const PASSIVE = 0x00000001;

lib/std/c/openbsd.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ pub const sockaddr = extern struct {
388388
};
389389
};
390390

391+
pub const IFNAMESIZE = 16;
392+
391393
pub const AI = struct {
392394
/// get address to use bind()
393395
pub const PASSIVE = 1;

0 commit comments

Comments
 (0)