mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Should use an unsigned int for eventfd
This commit is contained in:
parent
c169f7ae83
commit
c0000fb24e
1 changed files with 1 additions and 1 deletions
2
glfw/backend_utils.c
vendored
2
glfw/backend_utils.c
vendored
|
|
@ -245,7 +245,7 @@ initPollData(EventLoopData *eld, int display_fd) {
|
|||
void
|
||||
wakeupEventLoop(EventLoopData *eld) {
|
||||
#ifdef HAS_EVENT_FD
|
||||
static const int64_t value = 1;
|
||||
static const uint64_t value = 1;
|
||||
while (write(eld->wakeupFd, &value, sizeof value) < 0 && (errno == EINTR || errno == EAGAIN));
|
||||
#else
|
||||
while (write(eld->wakeupFds[1], "w", 1) < 0 && (errno == EINTR || errno == EAGAIN));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue