| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/igt-gpu-tools/files/ |
Upload File : |
--- runner/executor.c.orig 2022-08-31 20:00:01 UTC
+++ runner/executor.c
@@ -2,7 +2,9 @@
#include <errno.h>
#include <fcntl.h>
#include <glib.h>
+#ifdef __linux__
#include <linux/watchdog.h>
+#endif
#if HAVE_OPING
#include <oping.h>
#endif
@@ -14,7 +16,9 @@
#include <sys/ioctl.h>
#include <sys/select.h>
#include <sys/poll.h>
+#ifdef __linux__
#include <sys/signalfd.h>
+#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -32,6 +36,16 @@
#define KMSG_HEADER "[IGT] "
#define KMSG_WARN 4
+
+#ifdef __FreeBSD__
+#include <sys/watchdog.h>
+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;