commit e1a3359ca8e6f4d136ef3c495a13cf890a0ea851
Author: Jonathan Dowland <jmtd@debian.org>
Date:   Thu May 22 06:54:50 2014 +0100

    tty.c: define PATH_MAX if undefined
    
    We're (ab)using PATH_MAX as an upper-bound on a string buffer size,
    but it isn't defined on all platforms (notably HURD). For those
    platforms just defined a reasonably high number.

diff --git a/tty.c b/tty.c
index ac9ed44..1b83016 100644
--- a/tty.c
+++ b/tty.c
@@ -35,6 +35,10 @@
 #include "main.h"
 #include "mincurses.h"
 
+#ifndef PATH_MAX
+#  define PATH_MAX 4096
+#endif
+
 static int force=0;
 static int p_tm,p_ch,p_b,p_r,p_fm,p_rm,pcm_n,p_tr,p_tmax,p_pau,p_pl,p_tn,p_g;
 static double p_st,p_cur,p_end,p_len;
