mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +02:00
Linux: Use eventfd rather than a pipe for loop wakeup
This commit is contained in:
@@ -15,8 +15,15 @@
|
||||
#include <sys/signalfd.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<sys/eventfd.h>)
|
||||
#define HAS_EVENT_FD
|
||||
#include <sys/eventfd.h>
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
#ifndef HAS_EVENT_FD
|
||||
int wakeup_fds[2];
|
||||
#endif
|
||||
#ifndef HAS_SIGNAL_FD
|
||||
int signal_fds[2];
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user