[03/14] radv: add ETIME fallback define

Submitted by Greg V on Dec. 31, 2017, 4:55 p.m.

Details

Message ID 20171231165528.35619-4-greg@unrelenting.technology
State New
Headers show
Series "BSD portability (Meson, ANV, RADV, VC4/5, SWR)" ( rev: 2 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Greg V Dec. 31, 2017, 4:55 p.m.
FreeBSD only has ETIMEDOUT, not ETIME
---
 src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

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