[igt-dev] [PATCH i-g-t 04/10] Include <sys/syscall.h> for FreeBSD systems
Jake Freeland
jake at technologyfriends.net
Fri Oct 7 04:07:12 UTC 2022
Signed-off-by: Jake Freeland <jfree at freebsd.org>
---
lib/igt_aux.h | 2 +-
lib/igt_core.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/igt_aux.h b/lib/igt_aux.h
index c8d487b6..c98cf28f 100644
--- a/lib/igt_aux.h
+++ b/lib/igt_aux.h
@@ -34,7 +34,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
# include <sys/syscall.h>
#endif
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 2aee0d08..aad7b6d8 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -43,7 +43,7 @@
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
#include <sys/syscall.h>
#endif
#include <pthread.h>
--
2.37.3
More information about the igt-dev
mailing list