diff --git a/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde b/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde
index e956799fc923b7e464631e5159601ad5048ac363..c31447ac04437abc4469957ed9b7a42ef8042d4b 100644
--- a/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde
+++ b/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.pde
@@ -6,6 +6,7 @@
 #include <FastSerial.h>
 #include <AP_Common.h>
 #include <AP_GPS.h>
+#include <AP_Math.h>
 
 FastSerialPort0(Serial);
 FastSerialPort1(Serial1);