--- runner/executor.c.orig 2022-08-31 20:00:01 UTC +++ runner/executor.c @@ -2,7 +2,9 @@ #include #include #include +#ifdef __linux__ #include +#endif #if HAVE_OPING #include #endif @@ -14,7 +16,9 @@ #include #include #include +#ifdef __linux__ #include +#endif #include #include #include @@ -32,6 +36,16 @@ #define KMSG_HEADER "[IGT] " #define KMSG_WARN 4 + +#ifdef __FreeBSD__ +#include +struct signalfd_siginfo { + uint32_t ssi_signo; + uint32_t ssi_pid; +}; +#define WDIOC_KEEPALIVE WDIOCPATPAT +#define signalfd(fd, mask, flags) -ENOSYS +#endif static struct { int *fds;