diff options
author | Jon Smirl <[email protected]> | 2004-07-10 17:09:57 +0000 |
---|---|---|
committer | Jon Smirl <[email protected]> | 2004-07-10 17:09:57 +0000 |
commit | 65293d8f73cfaf783607d8ba42648a43cb905cba (patch) | |
tree | fe5f8c6c34e2fbc1248929539bd03b29c89782b9 /src | |
parent | 486e5c26dc3164493b4f045b533fc1b9e1847581 (diff) |
Fix unichrome solo build to not need X11 headers. Minor change to
use mesa_alloc/free.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/xf86drmVIA.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/unichrome/xf86drmVIA.c b/src/mesa/drivers/dri/unichrome/xf86drmVIA.c index 8954d8e208c..50fc6b9cbe4 100644 --- a/src/mesa/drivers/dri/unichrome/xf86drmVIA.c +++ b/src/mesa/drivers/dri/unichrome/xf86drmVIA.c @@ -44,16 +44,9 @@ # include <sys/ioctl.h> # include <sys/mman.h> # include <sys/time.h> -# ifdef DRM_USE_MALLOC -# define _DRM_MALLOC malloc -# define _DRM_FREE free -extern int xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *); -extern int xf86RemoveSIGIOHandler(int fd); -# else -# include <X11/Xlibint.h> -# define _DRM_MALLOC Xmalloc -# define _DRM_FREE Xfree -# endif +#include "imports.h" +#define _DRM_MALLOC MALLOC +#define _DRM_FREE FREE #endif /* Not all systems have MAP_FAILED defined */ |