diff --git a/libraries/AP_Math/examples/location/location.pde b/libraries/AP_Math/examples/location/location.pde
index 742789ac4885ec338ba51c99b25ff2016158bd6c..2c3229fce5e53cba843bb95df02258ba53eb5c0d 100644
--- a/libraries/AP_Math/examples/location/location.pde
+++ b/libraries/AP_Math/examples/location/location.pde
@@ -14,6 +14,7 @@
 #include <AP_InertialSensor.h>
 #include <AP_GPS.h>
 #include <DataFlash.h>
+#include <AP_Baro.h>
 #include <GCS_MAVLink.h>
 #include <AP_Declination.h>