Skip to content

Commit

Permalink
fix build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomas committed Oct 22, 2024
1 parent 57a8c08 commit 9c65761
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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
1 change: 1 addition & 0 deletions src/io_win.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <assert.h>
#include <unistd.h>
#include <uv.h>

#include "internal.h"
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

0 comments on commit 9c65761

Please sign in to comment.