Fix compilation errors

This commit is contained in:
2024-04-09 14:34:06 +02:00
parent 14f33a7ef5
commit b8232cce15
5 changed files with 107 additions and 61 deletions
+5 -2
View File
@@ -1,3 +1,5 @@
#include <stdint.h>
#include <stdbool.h>
#define IO_VERSION_MAJOR 0
#define IO_VERSION_MINOR 0
@@ -38,7 +40,7 @@ struct io_os_overlap {
void *pointer;
};
void *event;
}:
};
enum io_optype {
IO_VOID,
@@ -56,7 +58,7 @@ struct io_operation {
void *user;
#if IO_PLATFORM_WINDOWS
struct io_os_handle accepted;
io_os_handle accepted;
struct io_os_overlap ov;
char accept_buffer[2 * (IO_SOCKADDR_IN_SIZE + 16)];
#endif
@@ -72,6 +74,7 @@ struct io_resource {
enum io_restype type;
io_os_handle os_handle;
uint16_t pending;
uint16_t gen;
};
struct io_context {