From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id A8EF56E44F for ; Mon, 29 Mar 2021 14:06:36 +0000 (UTC) From: Petri Latvala Date: Mon, 29 Mar 2021 17:07:14 +0300 Message-Id: <20210329140714.3921-1-petri.latvala@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t] lib: Don't use libdrm_nouveau if not found List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Petri Latvala List-ID: Only #include the libdrm_nouveau headers if HAVE_LIBDRM_NOUVEAU is set so IGT builds again without it installed. Signed-off-by: Petri Latvala Cc: Lyude Paul --- lib/igt_nouveau.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/igt_nouveau.h b/lib/igt_nouveau.h index ea44adb2..c518de3c 100644 --- a/lib/igt_nouveau.h +++ b/lib/igt_nouveau.h @@ -26,10 +26,6 @@ #include #include -#include -#include -#include - #include "igt_core.h" #define IGT_NOUVEAU_CHIPSET_GV100 0x140 @@ -37,6 +33,10 @@ typedef struct igt_fb igt_fb_t; #ifdef HAVE_LIBDRM_NOUVEAU +#include +#include +#include + #define DECL(d) d #else /* There shouldn't be any code that calls igt_nouveau_* functions without libdrm support enabled, as -- 2.29.2 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev