summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Shao <davshao@gmail.com>2012-11-10 00:24:56 -0500
committerBen Widawsky <ben@bwidawsk.net>2012-11-10 11:52:38 -0800
commit7d42b49c0cf19dbb4531cd84efae51f95db2eea1 (patch)
tree03b6576422fdccba9bc88e6292925cb80e9c4b51
parente01d68f9f3acfc35fe164283904b5d058c2ab378 (diff)
intel: Fix missing ETIME on BSD operating systems
Originally posted to Free Desktop bug #52549 by David Shao. Resolves Gentoo Bug #433403. Commit message by Richard Yao. Reviewed-by: Richard Yao <ryao@gentoo.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> References: https://bugs.freedesktop.org/show_bug.cgi?id=52549 Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
-rw-r--r--intel/intel_bufmgr_gem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 8d45839d..512bc6ff 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -54,6 +54,9 @@
#include <stdbool.h>
#include "errno.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
#include "libdrm_lists.h"
#include "intel_bufmgr.h"
#include "intel_bufmgr_priv.h"