Skip to content

Commit 5db80a0

Browse files
committed
Revert "std.os: add INVALID_SOCKET (#12081)"
This reverts commit 0f01e81. 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 parent a31b449 commit 5db80a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/std/os.zig

-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ pub const RelativePathWasi = struct {
235235
};
236236

237237
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);
239238

240239
/// See also `getenv`. Populated by startup code before main().
241240
/// TODO this is a footgun because the value will be undefined when using `zig build-lib`.

0 commit comments

Comments
 (0)