diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index a5b9fc5e4..e32d90209 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -42,7 +42,19 @@ #include #if defined(USE_X11) -#include +# ifdef __APPLE_CC__ // allows using on Darwin + X11 even if X11/Xregion.h is absent +typedef struct { + short x1, x2, y1, y2; +} BOX; +struct _XRegion { + long size; + long numRects; + BOX *rects; + BOX extents; +}; +# else +# include +# endif #endif #include