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 --- freedreno/msm/msm_bo.c | 4 ++++ freedreno/msm/msm_device.c | 4 ++++ freedreno/msm/msm_pipe.c | 4 ++++ freedreno/msm/msm_ringbuffer.c | 4 ++++ 4 files changed, 16 insertions(+) (limited to 'freedreno/msm') diff --git a/freedreno/msm/msm_bo.c b/freedreno/msm/msm_bo.c index 57d87256..0cac1c60 100644 --- a/freedreno/msm/msm_bo.c +++ b/freedreno/msm/msm_bo.c @@ -26,6 +26,10 @@ * Rob Clark */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "msm_priv.h" static int bo_allocate(struct msm_bo *msm_bo) diff --git a/freedreno/msm/msm_device.c b/freedreno/msm/msm_device.c index cadcc854..b9c5a3e3 100644 --- a/freedreno/msm/msm_device.c +++ b/freedreno/msm/msm_device.c @@ -26,6 +26,10 @@ * Rob Clark */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include #include diff --git a/freedreno/msm/msm_pipe.c b/freedreno/msm/msm_pipe.c index 56505037..6955f2c9 100644 --- a/freedreno/msm/msm_pipe.c +++ b/freedreno/msm/msm_pipe.c @@ -26,6 +26,10 @@ * Rob Clark */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "msm_priv.h" diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c index e4d9561e..6a4043fb 100644 --- a/freedreno/msm/msm_ringbuffer.c +++ b/freedreno/msm/msm_ringbuffer.c @@ -26,6 +26,10 @@ * Rob Clark */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include "freedreno_ringbuffer.h" -- cgit v1.2.3