--- ./bin/rmcp.c.orig
+++ ./bin/rmcp.c
@@ -51,6 +51,9 @@
 #include "nilfs.h"
 #include "parser.h"
 
+#ifndef MAX_INPUT
+#define MAX_INPUT _POSIX_MAX_INPUT
+#endif
 
 #ifdef _GNU_SOURCE
 #include <getopt.h>
