From patchwork Wed Jul 8 17:41:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Coopersmith X-Patchwork-Id: 6750191 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 791BAC05AC for ; Wed, 8 Jul 2015 17:41:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0FAD2060D for ; Wed, 8 Jul 2015 17:41:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E46AC2060C for ; Wed, 8 Jul 2015 17:41:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2EDFF6EBAA; Wed, 8 Jul 2015 10:41:52 -0700 (PDT) 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 ESMTPS id D31086EBAA for ; Wed, 8 Jul 2015 10:41:50 -0700 (PDT) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t68Hfn3g026826 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 8 Jul 2015 17:41:49 GMT Received: from also.us.oracle.com (also.us.oracle.com [10.132.136.78]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t68HfmJa021970 for ; Wed, 8 Jul 2015 17:41:48 GMT From: Alan Coopersmith To: dri-devel@lists.freedesktop.org Subject: [PATCH:libdrm] include & directly for major() and minor() Date: Wed, 8 Jul 2015 10:41:43 -0700 Message-Id: <1436377303-28355-1-git-send-email-alan.coopersmith@oracle.com> X-Mailer: git-send-email 1.7.9.2 In-Reply-To: <559D6034.2020602@oracle.com> References: <559D6034.2020602@oracle.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Linux seems to pick these up via another header, but Solaris needs them explictly included, or we get undefined symbol errors for major & minor. v2: use headers documented in makedev(3C) man page instead of sysmacros.h Signed-off-by: Alan Coopersmith --- libkms/linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libkms/linux.c b/libkms/linux.c index 4d47148..53e03c3 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -40,6 +40,8 @@ #include #include #include +#include +#include #include "libdrm_macros.h" #include "internal.h"