diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp
index 555c4a01c69e644628badb79efc63e6b9e2d8179..fa7880bdbe8a81da05a253f22c3f6ca21eb3282d 100644
--- a/src/wrap_cl.hpp
+++ b/src/wrap_cl.hpp
@@ -13,6 +13,7 @@
 
 // Mac ------------------------------------------------------------------------
 #include <OpenCL/opencl.h>
+#include "pyopencl_ext.h"
 #ifdef HAVE_GL
 
 #define PYOPENCL_GL_SHARING_VERSION 1