diff --git a/Code/Mantid/Framework/Kernel/src/ConfigService.cpp b/Code/Mantid/Framework/Kernel/src/ConfigService.cpp
index cabd7b6655ec04b85bf492931a2ef014b1fa40c2..29ccb7597e53308731b3735e1cb231473cd4a0d4 100644
--- a/Code/Mantid/Framework/Kernel/src/ConfigService.cpp
+++ b/Code/Mantid/Framework/Kernel/src/ConfigService.cpp
@@ -33,6 +33,10 @@
 #include <string>
 #include <algorithm>
 
+#ifdef __APPLE__
+  #include <mach-o/dyld.h>
+#endif
+
 namespace Mantid
 {
 /**