From patchwork Fri Nov 9 22:06:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Yao X-Patchwork-Id: 1724521 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 4AD0C3FC8A for ; Sat, 10 Nov 2012 16:49:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C25249EC53 for ; Sat, 10 Nov 2012 08:49:53 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by gabe.freedesktop.org (Postfix) with ESMTP id 457579E710 for ; Fri, 9 Nov 2012 14:09:40 -0800 (PST) Received: from localhost.localdomain (pool-173-77-245-118.nycmny.fios.verizon.net [173.77.245.118]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ryao) by smtp.gentoo.org (Postfix) with ESMTPSA id 8F20233D8DC; Fri, 9 Nov 2012 22:09:39 +0000 (UTC) From: Richard Yao To: intel-gfx@lists.freedesktop.org Date: Fri, 9 Nov 2012 17:06:48 -0500 Message-Id: <1352498808-8235-1-git-send-email-ryao@gentoo.org> X-Mailer: git-send-email 1.7.8.6 X-Mailman-Approved-At: Sat, 10 Nov 2012 08:49:44 -0800 Cc: gentoo-bsd@lists.gentoo.org, David Shao Subject: [Intel-gfx] [PATCH] intel: Fix missing ETIME on BSD operating systems X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org From: David Shao Originally posted to Free Desktop bug #52549 by David Shao. Resolves Gentoo Bug #433403. Commit message by Richard Yao. Reviewed-by: Richard Yao Reviewed-by: Kenneth Graunke --- intel/intel_bufmgr_gem.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 8d45839..512bc6f 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -54,6 +54,9 @@ #include #include "errno.h" +#ifndef ETIME +#define ETIME ETIMEDOUT +#endif #include "libdrm_lists.h" #include "intel_bufmgr.h" #include "intel_bufmgr_priv.h"