[PATCH] nouveau: fix 32bit builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <emil.l.velikov@xxxxxxxxx>
---
 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 <config.h>
+#endif
+
 #include <libdrm.h>
 #include <xf86drm.h>
 #include <xf86atomic.h>
-- 
2.1.0

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux