[Mesa-dev] [PATCH 02/14] vc4, vc5: add ETIME fallback define

Greg V greg at unrelenting.technology
Sun Dec 31 16:55:16 UTC 2017


FreeBSD only has ETIMEDOUT, not ETIME
---
 src/gallium/drivers/vc4/vc4_bufmgr.c | 4 ++++
 src/gallium/drivers/vc5/vc5_bufmgr.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c
index 274c4c3120..cbc1e1ae1b 100644
--- a/src/gallium/drivers/vc4/vc4_bufmgr.c
+++ b/src/gallium/drivers/vc4/vc4_bufmgr.c
@@ -35,6 +35,10 @@
 #include "vc4_context.h"
 #include "vc4_screen.h"
 
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
+
 #ifdef HAVE_VALGRIND
 #include <valgrind.h>
 #include <memcheck.h>
diff --git a/src/gallium/drivers/vc5/vc5_bufmgr.c b/src/gallium/drivers/vc5/vc5_bufmgr.c
index c6c06dcfda..b676373689 100644
--- a/src/gallium/drivers/vc5/vc5_bufmgr.c
+++ b/src/gallium/drivers/vc5/vc5_bufmgr.c
@@ -35,6 +35,10 @@
 #include "vc5_context.h"
 #include "vc5_screen.h"
 
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
+
 #ifdef HAVE_VALGRIND
 #include <valgrind.h>
 #include <memcheck.h>
-- 
2.15.1



More information about the mesa-dev mailing list