bsd: add missing os.IFNAMESIZE
- based on system API value IF_NAMESIZE
- unblocks `zig test lib/std/std.zig`
3 files changed, 6 insertions(+), 0 deletions(-)
lib/std/c/dragonfly.zig+2
| ... | ... | @@ -838,6 +838,8 @@ pub const EAI = enum(c_int) { |
| 838 | 838 | _, |
| 839 | 839 | }; |
| 840 | 840 | |
| 841 | pub const IFNAMESIZE = 16; |
| 842 | |
| 841 | 843 | pub const AI = struct { |
| 842 | 844 | pub const PASSIVE = 0x00000001; |
| 843 | 845 | pub const CANONNAME = 0x00000002; |
lib/std/c/netbsd.zig+2
| ... | ... | @@ -483,6 +483,8 @@ pub const sockaddr = extern struct { |
| 483 | 483 | }; |
| 484 | 484 | }; |
| 485 | 485 | |
| 486 | pub const IFNAMESIZE = 16; |
| 487 | |
| 486 | 488 | pub const AI = struct { |
| 487 | 489 | /// get address to use bind() |
| 488 | 490 | pub const PASSIVE = 0x00000001; |
lib/std/c/openbsd.zig+2
| ... | ... | @@ -388,6 +388,8 @@ pub const sockaddr = extern struct { |
| 388 | 388 | }; |
| 389 | 389 | }; |
| 390 | 390 | |
| 391 | pub const IFNAMESIZE = 16; |
| 392 | |
| 391 | 393 | pub const AI = struct { |
| 392 | 394 | /// get address to use bind() |
| 393 | 395 | pub const PASSIVE = 1; |