From 2a1a6402274911c144e32217bf0ca6cdebb0b89a Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 27 Aug 2014 23:12:05 +0200 Subject: Define PATH_MAX if it's not defined Fixes FTBFS on Hurd. [Dirk Hohndel: changed PATH_MAX to 4096 for consistency with Linux] Signed-off-by: Salvo 'LtWorf' Tomaselli Signed-off-by: Dirk Hohndel --- qt-ui/subsurfacewebservices.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3-70-g09d2