Skip to contentSkip to conversation

nouveau: fix 32bit builds

PATCH In review Emil Velikov 2 participants 2 messages Sep 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nouveau: fix 32bit builds

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

---
 nouveau/private.h | 4 ++++
 1 file changed, 4 insertions(+)
nouveau/private.h +4 -0
index bf9db04..8176267 100644
@@ -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>
Signature · 1 line
2.1.0
#1 lore raw

no, config.h needs to be in the .c files.. plus a lot more than just nouveau.. I've pushed a patch which fixes it for everyone but (potentially) intel, since I can't build libdrm_intel on 32b arm ;-)

Someone please test 32b intel build before I push another release

BR,
-R

Quoted 31 lines · Emil Velikov

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

---
 nouveau/private.h | 4 ++++
 1 file changed, 4 insertions(+)
nouveau/private.h +4 -1
index bf9db04..8176267 100644
@@ -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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel