diff options
author | Rob Clark <robdclark@gmail.com> | 2014-09-28 14:19:14 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2014-09-28 14:30:07 -0400 |
commit | c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba (patch) | |
tree | cd867e29920764fe473b5ff80fbf40308d55ba3f /freedreno/kgsl | |
parent | a6cddb34105d6d0e488e847028c57db0335e8e85 (diff) | |
download | libdrm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.tar.gz libdrm-c09dcbc736afb2e6a05d4cfc5c3d878ace43e2ba.tar.bz2 libdrm-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 'freedreno/kgsl')
-rw-r--r-- | freedreno/kgsl/kgsl_bo.c | 4 | ||||
-rw-r--r-- | freedreno/kgsl/kgsl_device.c | 4 | ||||
-rw-r--r-- | freedreno/kgsl/kgsl_pipe.c | 4 | ||||
-rw-r--r-- | freedreno/kgsl/kgsl_ringbuffer.c | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/freedreno/kgsl/kgsl_bo.c b/freedreno/kgsl/kgsl_bo.c index 4e492dde..fab33500 100644 --- a/freedreno/kgsl/kgsl_bo.c +++ b/freedreno/kgsl/kgsl_bo.c @@ -26,6 +26,10 @@ * Rob Clark <robclark@freedesktop.org> */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include "kgsl_priv.h" #include <linux/fb.h> diff --git a/freedreno/kgsl/kgsl_device.c b/freedreno/kgsl/kgsl_device.c index fb6d6d2d..5f2dfea4 100644 --- a/freedreno/kgsl/kgsl_device.c +++ b/freedreno/kgsl/kgsl_device.c @@ -26,6 +26,10 @@ * Rob Clark <robclark@freedesktop.org> */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> diff --git a/freedreno/kgsl/kgsl_pipe.c b/freedreno/kgsl/kgsl_pipe.c index 88d9505b..1a795ba3 100644 --- a/freedreno/kgsl/kgsl_pipe.c +++ b/freedreno/kgsl/kgsl_pipe.c @@ -26,6 +26,10 @@ * Rob Clark <robclark@freedesktop.org> */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include "kgsl_priv.h" diff --git a/freedreno/kgsl/kgsl_ringbuffer.c b/freedreno/kgsl/kgsl_ringbuffer.c index da99741e..d1e8321e 100644 --- a/freedreno/kgsl/kgsl_ringbuffer.c +++ b/freedreno/kgsl/kgsl_ringbuffer.c @@ -26,6 +26,10 @@ * Rob Clark <robclark@freedesktop.org> */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + #include <assert.h> #include "freedreno_ringbuffer.h" |