i965: Apply the rest of the old-libdrm guard patch.

Bug #29855
This commit is contained in:
Cedric Vivier 2010-08-30 10:40:39 -07:00 committed by Eric Anholt
parent 1fcb5a9858
commit e1aa3c234f
1 changed files with 13 additions and 0 deletions

View File

@ -33,12 +33,25 @@
#include "main/mtypes.h"
#include "main/mm.h"
#include "dri_metaops.h"
#ifdef __cplusplus
extern "C" {
/* Evil hack for using libdrm in a c++ compiler. */
#define virtual virt
#endif
#include "drm.h"
#include "intel_bufmgr.h"
#include "intel_screen.h"
#include "intel_tex_obj.h"
#include "i915_drm.h"
#ifdef __cplusplus
#undef virtual
}
#endif
#include "tnl/t_vertex.h"
#define TAG(x) intel##x