Explorar el Código

logtrace: only export cmd when finsh is enabled

Grissiom hace 12 años
padre
commit
05651e7c66
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      components/utilities/logtrace/log_file.c

+ 3 - 0
components/utilities/logtrace/log_file.c

@@ -121,6 +121,9 @@ void log_trace_set_file(const char *filename)
     log_trace_file_init(filename);
     log_trace_set_device("logfile");
 }
+#ifdef RT_USING_FINSH
+#include <finsh.h>
 FINSH_FUNCTION_EXPORT_ALIAS(log_trace_set_file, log_file, set output filename of log trace);
+#endif
 
 #endif /* RT_USING_DFS */