--- a/src/sysvshm.cpp
+++ b/src/sysvshm.cpp
@@ -23,7 +23,11 @@
 #include <sys/types.h>
 #include <pthread.h>
 
+#ifdef MDU_INCLUDE_LOG
+#include MDU_INCLUDE_LOG
+#else
 #include "log.h"
+#endif
 #include "smallut.h"
 
 using namespace std;