diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c
index 2985bca2af..96cd81d349 100644
--- a/libs/esl/fs_cli.c
+++ b/libs/esl/fs_cli.c
@@ -839,9 +839,9 @@ static const char *basic_gets(int *cnt)
 		}
 		Sleep(20);
 	}
+#endif
 
 	return command_buf;
-#endif
 }
 #endif