summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/output-png.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/fitz/output-png.c b/source/fitz/output-png.c
index 2f19611c..74f2ca3f 100644
--- a/source/fitz/output-png.c
+++ b/source/fitz/output-png.c
@@ -2,6 +2,10 @@
#include <zlib.h>
+#ifndef PATH_MAX
+#define PATH_MAX (1024)
+#endif
+
static inline void big32(unsigned char *buf, unsigned int v)
{
buf[0] = (v >> 24) & 0xff;