mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 04:03:16 +02:00
Fix building with compilers that dont support __has_include
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef __has_include
|
||||
#if __has_include(<sys/signalfd.h>)
|
||||
#define HAS_SIGNAL_FD
|
||||
#include <sys/signalfd.h>
|
||||
@@ -19,6 +20,12 @@
|
||||
#define HAS_EVENT_FD
|
||||
#include <sys/eventfd.h>
|
||||
#endif
|
||||
#else
|
||||
#define HAS_SIGNAL_FD
|
||||
#include <sys/signalfd.h>
|
||||
#define HAS_EVENT_FD
|
||||
#include <sys/eventfd.h>
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
#ifndef HAS_EVENT_FD
|
||||
|
||||
Reference in New Issue
Block a user