#include "dri_drawable.h"
#include "state_tracker/st_api.h"
-#include "dri_util.h"
+#include "dri_wrapper.h"
extern struct dri1_api *__dri1_api_hooks;
#define DRI2_H
#include "dri_drawable.h"
-#include "dri_util.h"
+#include "dri_wrapper.h"
const __DRIconfig **
dri_init_screen2(__DRIscreen * sPriv);
#include "dri_drawable.h"
#include "dri_context.h"
#include "dri_st_api.h"
-#include "dri1.h"
#include "pipe/p_context.h"
#include "util/u_memory.h"
#define DRI_CONTEXT_H
#include "pipe/p_compiler.h"
-#include "drm.h"
-#include "dri_util.h"
+#include "dri_wrapper.h"
struct pipe_context;
struct pipe_fence;
#ifndef DRI_SCREEN_H
#define DRI_SCREEN_H
-#include "dri_util.h"
+#include "dri_wrapper.h"
#include "xmlconfig.h"
#include "pipe/p_compiler.h"
--- /dev/null
+#ifndef DRI_WRAPPER_H
+#define DRI_WRAPPER_H
+
+#ifndef __NOT_HAVE_DRM_H
+#include "dri_util.h"
+#else
+#include "drisw_util.h"
+#endif
+
+#endif