diff --git a/main/astmm.c b/main/astmm.c
index 298300968f2242e7011f2b4257af9fd9528a93e7..aaed4e9f0d9bdffb002e417458bd9cba2b99682c 100644
--- a/main/astmm.c
+++ b/main/astmm.c
@@ -29,6 +29,7 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
+#include "asterisk/paths.h"	/* use ast_config_AST_LOG_DIR */
 #include <time.h>
 
 #include "asterisk/cli.h"