From: Emil Velikov Subject: [PATCH] nouveau: fix 32bit builds Date: Sun, 28 Sep 2014 19:21:50 +0100 Message-ID: <1411928510-1127-1-git-send-email-emil.l.velikov@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 460DC6E082 for ; Sun, 28 Sep 2014 11:23:33 -0700 (PDT) Received: by mail-we0-f182.google.com with SMTP id x48so700475wes.27 for ; Sun, 28 Sep 2014 11:23:31 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org Cc: emil.l.velikov@gmail.com List-Id: dri-devel@lists.freedesktop.org On 32bit platforms we have to provide _FILE_OFFSET_BITS via config.h otherwise the static assert in drm_munmap will trigger. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84428 Signed-off-by: Emil Velikov --- nouveau/private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nouveau/private.h b/nouveau/private.h index bf9db04..8176267 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -1,6 +1,10 @@ #ifndef __NOUVEAU_LIBDRM_PRIVATE_H__ #define __NOUVEAU_LIBDRM_PRIVATE_H__ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include -- 2.1.0