Commit c09dcbc7 authored by Rob Clark's avatar Rob Clark 💬 Committed by Rob Clark
Browse files

fix compile error on 32bit systems

4c2766b6

 (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's avatarRob Clark <robdclark@gmail.com>
parent a6cddb34
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "freedreno_drmif.h"
#include "freedreno_priv.h"
......
......@@ -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>
......
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "freedreno_drmif.h"
#include "freedreno_priv.h"
......
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h>
#include "freedreno_drmif.h"
......
......@@ -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>
......
......@@ -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>
......
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "kgsl_priv.h"
......
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h>
#include "freedreno_ringbuffer.h"
......
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "msm_priv.h"
static int bo_allocate(struct msm_bo *msm_bo)
......
......@@ -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>
......
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "msm_priv.h"
......
......@@ -26,6 +26,10 @@
* Rob Clark <robclark@freedesktop.org>
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h>
#include "freedreno_ringbuffer.h"
......
......@@ -22,6 +22,10 @@
* Authors: Ben Skeggs
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment