# std.c: fix return type of recv/recvfrom on windows · gitcafe/zig

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

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

Visibility: public

Requested revision: 3add9d8257d9414421acf91823917d9d49b28c6f

Requested commit: 3add9d8257d9414421acf91823917d9d49b28c6f

Commit: 3add9d8257d9414421acf91823917d9d49b28c6f

Tree: 1a159c42f22d2bcfc33ed00db66a14f2620be735

Author: dweiller

Committer: Andrew Kelley

## Message

```
std.c: fix return type of recv/recvfrom on windows

Windows defines `recv` and `recvfrom` to return a value of type `int`,
rather than a pointer-sized signed integer, and so should use `c_int`
rather than `isize` for their return types.

```

## Parents

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

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