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>
main
Rob Clark 2014-09-28 14:19:14 -04:00 committed by Rob Clark
parent a6cddb3410
commit c09dcbc736
13 changed files with 52 additions and 0 deletions

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "freedreno_drmif.h" #include "freedreno_drmif.h"
#include "freedreno_priv.h" #include "freedreno_priv.h"

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "freedreno_drmif.h" #include "freedreno_drmif.h"
#include "freedreno_priv.h" #include "freedreno_priv.h"

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include "freedreno_drmif.h" #include "freedreno_drmif.h"

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "kgsl_priv.h" #include "kgsl_priv.h"
#include <linux/fb.h> #include <linux/fb.h>

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "kgsl_priv.h" #include "kgsl_priv.h"

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include "freedreno_ringbuffer.h" #include "freedreno_ringbuffer.h"

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "msm_priv.h" #include "msm_priv.h"
static int bo_allocate(struct msm_bo *msm_bo) static int bo_allocate(struct msm_bo *msm_bo)

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "msm_priv.h" #include "msm_priv.h"

View File

@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org> * Rob Clark <robclark@freedesktop.org>
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include "freedreno_ringbuffer.h" #include "freedreno_ringbuffer.h"

View File

@ -22,6 +22,10 @@
* Authors: Ben Skeggs * Authors: Ben Skeggs
*/ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>