[Mesa-dev] [PATCH 03/14] radv: add ETIME fallback define

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


FreeBSD only has ETIMEDOUT, not ETIME
---
 src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
index 4578a9b548..84ceee2f5d 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
@@ -33,6 +33,9 @@
 #include "radv_amdgpu_bo.h"
 #include "sid.h"
 
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
 
 enum {
 	VIRTUAL_BUFFER_HASH_TABLE_SIZE = 1024
-- 
2.15.1



More information about the mesa-dev mailing list