From c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 28 Sep 2014 14:19:14 -0400 Subject: 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 --- nouveau/abi16.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nouveau') 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 @@ * Authors: Ben Skeggs */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include #include -- cgit v1.2.3