diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index c3661e0ef..7ce33e142 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -29,6 +29,10 @@ #include #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + struct dive_table gps_location_table; static bool merge_locations_into_dives(void);