aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shao2012-11-09 23:24:56 -0600
committerBen Widawsky2012-11-10 13:52:38 -0600
commit7d42b49c0cf19dbb4531cd84efae51f95db2eea1 (patch)
tree03b6576422fdccba9bc88e6292925cb80e9c4b51
parente01d68f9f3acfc35fe164283904b5d058c2ab378 (diff)
downloadlibdrm-7d42b49c0cf19dbb4531cd84efae51f95db2eea1.tar.gz
libdrm-7d42b49c0cf19dbb4531cd84efae51f95db2eea1.tar.xz
libdrm-7d42b49c0cf19dbb4531cd84efae51f95db2eea1.zip
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 @@
54#include <stdbool.h> 54#include <stdbool.h>
55 55
56#include "errno.h" 56#include "errno.h"
57#ifndef ETIME
58#define ETIME ETIMEDOUT
59#endif
57#include "libdrm_lists.h" 60#include "libdrm_lists.h"
58#include "intel_bufmgr.h" 61#include "intel_bufmgr.h"
59#include "intel_bufmgr_priv.h" 62#include "intel_bufmgr_priv.h"