| author | |
| committer | |
| log | 5db80a051fea684e1d28fadb66f04932b090521c |
| tree | be47507fec9c3c8516962cc81b275807d1cdde29 |
| parent | a31b449b55c32eba1cb61a48753a6fc98696c98f |
This reverts commit 0f01e812ff054ea83661272bf0a96af228f2ffe3.
This does not belong in `std.posix`, and it is already provided at
`std.os.windows.ws2_32.INVALID_SOCKET`.
See related issue #5019.1 files changed, 0 insertions(+), 1 deletions(-)
lib/std/os.zig-1| ... | ... | @@ -235,7 +235,6 @@ pub const RelativePathWasi = struct { |
| 235 | 235 | }; |
| 236 | 236 | |
| 237 | 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 | 239 | /// See also `getenv`. Populated by startup code before main(). |
| 241 | 240 | /// TODO this is a footgun because the value will be undefined when using `zig build-lib`. |