summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index ed87b10bccf..316e02296af 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2259,7 +2259,7 @@ send_process (proc, buf, len)
if (pty_max_bytes == 0)
{
-#ifdef _PC_MAX_CANON
+#if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON)
pty_max_bytes = fpathconf (XFASTINT (XPROCESS (proc)->outfd),
_PC_MAX_CANON);
#else