aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-01-14 19:54:26 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-01-14 19:54:26 +0000
commite1669f881ea3e17b0ea522a99acf423b200179f6 (patch)
tree1b9dceaf36bd975485ef2c079401bf83c4d32fa8 /src/imv.c
parent8d29adeab985ba41af0f4317d3ad0be9ada3212e (diff)
downloadimv-e1669f881ea3e17b0ea522a99acf423b200179f6.tar.gz
Provide backup PATH_MAX value for Hurd
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/imv.c b/src/imv.c
index 717a77b..8ba96ea 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -22,6 +22,11 @@
#include "viewport.h"
#include "util.h"
+/* Some systems like GNU/Hurd don't define PATH_MAX */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
enum scaling_mode {
SCALING_NONE,
SCALING_DOWN,