Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build on windows #219

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
#include <stdbool.h>
#include <stdint.h>

typedef enum udx__endianness udx__endianness_t;

enum udx__endianness {
typedef enum {
UDX_LE,
UDX_BE
};
} udx__endianness_t;

udx__endianness_t
udx__endianness ();
Expand Down
2 changes: 1 addition & 1 deletion src/io_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ udx__get_link_mtu (const struct sockaddr *addr) {
rc = getsockopt(s, IPPROTO_IPV6, IPV6_MTU, (char *) &mtu, &mtu_opt_size);
}
if (rc == -1) {
close(s);
closesocket(s);
return -1;
}

Expand Down
1 change: 1 addition & 0 deletions src/udx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2515,6 +2515,7 @@ udx_stream_relay_to (udx_stream_t *stream, udx_stream_t *destination) {

int
udx_stream_send (udx_stream_send_t *req, udx_stream_t *stream, const uv_buf_t bufs[], unsigned int bufs_len, udx_stream_send_cb cb) {
UDX_UNUSED(bufs_len);

if (!(stream->status & UDX_STREAM_CONNECTED)) {
return UV_ENOTCONN;
Expand Down
Loading