# x/os: fix compile errors on mac and linux · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8ef9d98e6dd24bf9c3def1e938e3eab66b39667c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8ef9d98e6dd24bf9c3def1e938e3eab66b39667c

Requested commit: 8ef9d98e6dd24bf9c3def1e938e3eab66b39667c

Commit: 8ef9d98e6dd24bf9c3def1e938e3eab66b39667c

Tree: 5e5934b5b530a535ec6158f4e27d50c25bd36067

Author: lithdew

Committer: lithdew

## Message

```
x/os: fix compile errors on mac and linux

Use i32 instead of isize for os.timeval's for socket read/write
timeouts.

Add a comptime check to resolveScopeID to see if `IFNAMESIZE` is
available on the host. If it is not available, return an error
indicating that resolving the scope ID of a IPv6 address is not yet
supported on the host platform.

```

## Parents

- [76304a36afb6d2cc77902a0e60906382b53d7baa](https://git.cafe/gitcafe/zig/commit/76304a36afb6d2cc77902a0e60906382b53d7baa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8ef9d98e6dd24bf9c3def1e938e3eab66b39667c?format=markdown)
