mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 07:03:11 +00:00
Revert "std.os: add INVALID_SOCKET (#12081)"
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.
This commit is contained in:
parent
a31b449b55
commit
5db80a051f
@ -235,7 +235,6 @@ pub const RelativePathWasi = struct {
|
||||
};
|
||||
|
||||
pub const socket_t = if (builtin.os.tag == .windows) windows.ws2_32.SOCKET else fd_t;
|
||||
pub const INVALID_SOCKET = if (builtin.os.tag == .windows) windows.ws2_32.INVALID_SOCKET else @as(socket_t, -1);
|
||||
|
||||
/// See also `getenv`. Populated by startup code before main().
|
||||
/// TODO this is a footgun because the value will be undefined when using `zig build-lib`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user