aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark2014-09-28 13:19:14 -0500
committerRob Clark2014-09-28 13:30:07 -0500
commitc09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba (patch)
treecd867e29920764fe473b5ff80fbf40308d55ba3f /nouveau
parenta6cddb34105d6d0e488e847028c57db0335e8e85 (diff)
downloadexternal-libgbm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.tar.gz
external-libgbm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.tar.xz
external-libgbm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.zip
fix compile error on 32bit systems
4c2766b (drm_mmap/drm_unmap) brought this error for every .c file that was not #including config.h: In file included from private.h:4:0, from abi16.c:29: ../libdrm.h: In function 'drm_munmap': ../libdrm.h:81:4: error: size of unnamed array is negative Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/abi16.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nouveau/abi16.c b/nouveau/abi16.c
index f34175e0..ae13821b 100644
--- a/nouveau/abi16.c
+++ b/nouveau/abi16.c
@@ -22,6 +22,10 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26# include <config.h>
27#endif
28
25#include <stdlib.h> 29#include <stdlib.h>
26#include <stdint.h> 30#include <stdint.h>
27#include <stddef.h> 31#include <stddef.h>