summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>2014-08-27 23:12:05 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-27 15:55:03 -0700
commit2a1a6402274911c144e32217bf0ca6cdebb0b89a (patch)
tree539db907baacb8fa39b60baa4f0100739e5ba680
parent6bb6e43846333380ccd87137f06609881f7aa9eb (diff)
downloadsubsurface-2a1a6402274911c144e32217bf0ca6cdebb0b89a.tar.gz
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 <tiposchi@tiscali.it> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/subsurfacewebservices.cpp4
1 files changed, 4 insertions, 0 deletions
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 <QUrlQuery>
#endif
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
struct dive_table gps_location_table;
static bool merge_locations_into_dives(void);