diff --git a/common/utils/telnetsrv/telnetsrv_proccmd.c b/common/utils/telnetsrv/telnetsrv_proccmd.c
index 6a8f60ac8b49bf3a111cdbecf71840e46a2a4d91..bd409ab27cdad2eb93a669c99dc4310775b68c6b 100644
--- a/common/utils/telnetsrv/telnetsrv_proccmd.c
+++ b/common/utils/telnetsrv/telnetsrv_proccmd.c
@@ -22,6 +22,7 @@
 #include "telnetsrv.h"
 #define TELNETSRV_PROCCMD_MAIN
 #include "log.h"
+#include "log_extern.h"
 #include "telnetsrv_proccmd.h"
 
 void decode_procstat(char *record, int debug, telnet_printfunc_t prnt)
diff --git a/common/utils/telnetsrv/telnetsrv_proccmd.h b/common/utils/telnetsrv/telnetsrv_proccmd.h
index a80c120b603607b8708f8d5c9262b9821cb7c255..60eaa2e40620fb7145128c9ffe3ae8b202ae180f 100644
--- a/common/utils/telnetsrv/telnetsrv_proccmd.h
+++ b/common/utils/telnetsrv/telnetsrv_proccmd.h
@@ -34,9 +34,7 @@
 
 
 #ifdef TELNETSRV_PROCCMD_MAIN
-/* global variable from log.c */
-extern mapping *log_level_names;
-extern mapping *log_verbosity_names;
+
 
 extern int proccmd_show(char *buf, int debug, telnet_printfunc_t prnt);
 extern int proccmd_thread(char *buf, int debug, telnet_printfunc_t prnt);