dri: fix for Cygwin compilation, bug 19144
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 18 Dec 2008 01:01:16 +0000 (18:01 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Dec 2008 01:01:16 +0000 (18:01 -0700)
include/GL/internal/dri_interface.h

index e4cc16b8660824e3bcb7afe6836bdf5c5ab84857..8f25987154ae6ebe40e6742687a03083931229f5 100644 (file)
@@ -40,8 +40,8 @@
 #ifndef DRI_INTERFACE_H
 #define DRI_INTERFACE_H
 
-/* Make this something other than __APPLE__ for other arcs with no drm.h */
-#ifndef __APPLE__
+/* For archs with no drm.h */
+#if !defined(__APPLE__) && !defined(__CYGWIN__)
 #include <drm.h>
 #else
 typedef unsigned int drm_context_t;