From patchwork Sun Sep 6 16:38:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alan Coopersmith X-Patchwork-Id: 7132081 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 1A5699F32B for ; Sun, 6 Sep 2015 16:38:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47198206FC for ; Sun, 6 Sep 2015 16:38:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 565D820610 for ; Sun, 6 Sep 2015 16:38:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 851AB89DED; Sun, 6 Sep 2015 09:38:56 -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 4B7FB89DED for ; Sun, 6 Sep 2015 09:38:55 -0700 (PDT) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t86Gco8B009559 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 6 Sep 2015 16:38:51 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 t86GcnJi016908; Sun, 6 Sep 2015 16:38:50 GMT From: Alan Coopersmith To: DRI Developers Subject: [PATCH:libdrm] Include when needed before calling alloca Date: Sun, 6 Sep 2015 09:38:25 -0700 Message-Id: <1441557505-24293-1-git-send-email-alan.coopersmith@oracle.com> X-Mailer: git-send-email 1.7.9.2 X-Source-IP: aserv0022.oracle.com [141.146.126.234] Cc: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= 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=-5.2 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 Fixes "error: implicit declaration of function 'alloca'" failures when building on Solaris Signed-off-by: Alan Coopersmith Reviewed-by: Marek Olšák --- amdgpu/amdgpu_cs.c | 3 +++ tests/amdgpu/basic_tests.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c index c7910ad..4da9821 100644 --- a/amdgpu/amdgpu_cs.c +++ b/amdgpu/amdgpu_cs.c @@ -32,6 +32,9 @@ #include #include #include +#ifdef HAVE_ALLOCA_H +# include +#endif #include "xf86drm.h" #include "amdgpu_drm.h" diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 7874039..e489e6e 100644 --- a/tests/amdgpu/basic_tests.c +++ b/tests/amdgpu/basic_tests.c @@ -28,6 +28,9 @@ #include #include #include +#ifdef HAVE_ALLOCA_H +# include +#endif #include "CUnit/Basic.h"