diff --git a/utils/VisualiseNeurons.h b/utils/VisualiseNeurons.h
index 79bd36084aa6729455c3daeef629c707721c7e0b..e8e85cd22cee64e2627776a6e787122a83b75e81 100644
--- a/utils/VisualiseNeurons.h
+++ b/utils/VisualiseNeurons.h
@@ -19,7 +19,11 @@
 // VisualiseNeurons.h written by Johannes Hjorth, hjorth@nada.kth.se
 
 
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
 #include <GL/gl.h>
+#endif
 #include <GL/freeglut.h>
 #include <math.h>
 #include <mpi.h>