From: Jon Smirl Date: Sat, 10 Jul 2004 17:09:57 +0000 (+0000) Subject: Fix unichrome solo build to not need X11 headers. Minor change to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65293d8f73cfaf783607d8ba42648a43cb905cba;p=mesa.git Fix unichrome solo build to not need X11 headers. Minor change to use mesa_alloc/free. --- 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 # include # include -# 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 -# 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 */