From patchwork Tue Jul 7 00:45:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Coopersmith X-Patchwork-Id: 6729341 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 20DF4C05AC for ; Tue, 7 Jul 2015 00:45:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55D9F20735 for ; Tue, 7 Jul 2015 00:45:37 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 77236206E0 for ; Tue, 7 Jul 2015 00:45:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C9C526E27B; Mon, 6 Jul 2015 17:45:34 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 75DD16E27B for ; Mon, 6 Jul 2015 17:45:33 -0700 (PDT) Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t670jUVg022101 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 7 Jul 2015 00:45:32 GMT Received: from also.us.oracle.com (also.us.oracle.com [10.132.136.78]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t670jU5l013180 for ; Tue, 7 Jul 2015 00:45:30 GMT From: Alan Coopersmith To: dri-devel@lists.freedesktop.org Subject: [PATCH:libdrm] include directly for major() and minor() Date: Mon, 6 Jul 2015 17:45:25 -0700 Message-Id: <1436229925-18893-1-git-send-email-alan.coopersmith@oracle.com> X-Mailer: git-send-email 1.7.9.2 X-Source-IP: userv0022.oracle.com [156.151.31.74] 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 this up via another header, but Solaris needs it explictly included, or we get undefined symbol errors for major & minor. Signed-off-by: Alan Coopersmith --- libkms/linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libkms/linux.c b/libkms/linux.c index 4d47148..f1767c8 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -40,6 +40,7 @@ #include #include #include +#include #include "libdrm_macros.h" #include "internal.h"