diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp
index 35a2a3e9b3..552ef8b2d8 100644
--- a/Marlin/temperature.cpp
+++ b/Marlin/temperature.cpp
@@ -29,6 +29,9 @@
 #include "temperature.h"
 #include "thermistortables.h"
 #include "language.h"
+#if ENABLED(BABYSTEPPING)
+  #include "stepper.h"
+#endif
 
 #if ENABLED(USE_WATCHDOG)
   #include "watchdog.h"