[PATCH 03/16] tools: fix FTBS on FreeBSD

Enrico Weigelt, metux IT consult info at metux.net
Tue Mar 4 15:57:56 UTC 2025


ETIME seems to be missing, so just alias it to ETIMEDOUT
It's just used by internal functions of the tools.

Signed-off-by: Enrico Weigelt, metux IT consult <info at metux.net>
---
 tools/virtual.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/virtual.c b/tools/virtual.c
index 010a3aab..9a4dde8e 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -69,6 +69,11 @@
 #include <fcntl.h>
 #include <assert.h>

+// for FreeBSD
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
+
 #define FORCE_FULL_REDRAW 0
 #define FORCE_16BIT_XFER 0

--
2.39.5



More information about the Intel-gfx mailing list