| ... | @@ -235,7 +235,6 @@ pub const RelativePathWasi = struct { | ... | @@ -235,7 +235,6 @@ pub const RelativePathWasi = struct { |
| 235 | }; | 235 | }; |
| 236 | | 236 | |
| 237 | pub const socket_t = if (builtin.os.tag == .windows) windows.ws2_32.SOCKET else fd_t; | 237 | pub const socket_t = if (builtin.os.tag == .windows) windows.ws2_32.SOCKET else fd_t; |
| 238 | pub const INVALID_SOCKET = if (builtin.os.tag == .windows) windows.ws2_32.INVALID_SOCKET else @as(socket_t, -1); | | |
| 239 | | 238 | |
| 240 | /// See also `getenv`. Populated by startup code before main(). | 239 | /// See also `getenv`. Populated by startup code before main(). |
| 241 | /// TODO this is a footgun because the value will be undefined when using `zig build-lib`. | 240 | /// TODO this is a footgun because the value will be undefined when using `zig build-lib`. |