From patchwork Sat Mar 7 19:50:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Coopersmith X-Patchwork-Id: 5960131 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BC2079F36A for ; Sat, 7 Mar 2015 19:50:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE80C202E9 for ; Sat, 7 Mar 2015 19:50:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6AE7B2024C for ; Sat, 7 Mar 2015 19:50:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B1F0A6E40A; Sat, 7 Mar 2015 11:50:46 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by gabe.freedesktop.org (Postfix) with ESMTP id 414666E40A for ; Sat, 7 Mar 2015 11:50:45 -0800 (PST) Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t27Jognn009925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 7 Mar 2015 19:50:43 GMT Received: from also.us.oracle.com (also.us.oracle.com [10.132.136.78]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t27JoeaH004680; Sat, 7 Mar 2015 19:50:41 GMT From: Alan Coopersmith To: dri-devel@lists.freedesktop.org Subject: [PATCH:libdrm] On Solaris, #include in xf86drm.c Date: Sat, 7 Mar 2015 11:50:32 -0800 Message-Id: <1425757832-7163-1-git-send-email-alan.coopersmith@oracle.com> X-Mailer: git-send-email 1.7.9.2 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Cc: Randy Fishel X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Needed for the definitions of major() & minor() used in drmGetNodeTypeFromFd() and makedev() used in drmOpenMinor() Signed-off-by: Alan Coopersmith Reviewed-by: Emil Velikov --- configure.ac | 2 ++ xf86drm.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 8afee83..bd39aa0 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,8 @@ AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE AC_FUNC_ALLOCA +AC_CHECK_HEADERS([sys/mkdev.h]) + # Initialize libtool LT_PREREQ([2.2]) LT_INIT([disable-static]) diff --git a/xf86drm.c b/xf86drm.c index e117bc6..c901f8b 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -50,6 +50,9 @@ #include #include #include +#ifdef HAVE_SYS_MKDEV_H +# include /* defines major(), minor(), and makedev() on Solaris */ +#endif /* Not all systems have MAP_FAILED defined */ #ifndef MAP_FAILED