Skip to content

Commit 02d9919

Browse files
committed
fix: build error
1 parent 7bb4fdc commit 02d9919

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

event/epoll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "hdef.h"
66
#include "hevent.h"
77
#include "hlog.h"
8+
#include "hsocket.h"
89

910
#ifdef OS_WIN
1011
#include "wepoll/wepoll.h"

event/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int iowatcher_init(hloop_t* loop) {
2323
HV_ALLOC_SIZEOF(ctx);
2424
int ret = io_uring_queue_init(IO_URING_ENTRIES, &ctx->ring, 0);
2525
if (ret < 0) {
26-
hloge("io_uring_queue_init failed: %d", -ret);
26+
hloge("io_uring_queue_init failed: %d", ret);
2727
HV_FREE(ctx);
2828
return ret;
2929
}

0 commit comments

Comments
 (0)