aboutsummaryrefslogtreecommitdiffstats
path: root/include/GL/internal
diff options
context:
space:
mode:
authorJeremy Huddleston <[email protected]>2008-08-08 02:19:52 -0700
committerJeremy Huddleston <[email protected]>2008-08-08 02:19:52 -0700
commit01ac4540f04d47b64aeead8984c92e39b436b5f9 (patch)
tree1f44c4a14635cfeabb447595236efb44109386f7 /include/GL/internal
parentee8dfdf4c9f0bbf4f99a6b78dbddc4871fd80a1c (diff)
Apple: Some changes to fix compilation problems on OSX
Diffstat (limited to 'include/GL/internal')
-rw-r--r--include/GL/internal/dri_interface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 033d7a4ae44..e7780d2e26c 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -40,7 +40,14 @@
#ifndef DRI_INTERFACE_H
#define DRI_INTERFACE_H
+/* Make this something other than __APPLE__ for other arcs with no drm.h */
+#ifndef __APPLE__
#include <drm.h>
+#else
+typedef unsigned int drm_context_t;
+typedef unsigned int drm_drawable_t;
+typedef struct drm_clip_rect drm_clip_rect_t;
+#endif
/**
* \name DRI interface structures