ecbff1
From 4cd343cf1a25e603ea78acbac027589f6a53a118 Mon Sep 17 00:00:00 2001
ecbff1
From: Jan Synacek <jsynacek@redhat.com>
ecbff1
Date: Thu, 23 Nov 2017 09:22:21 +0100
ecbff1
Subject: [PATCH] def: add new constant LONG_LINE_MAX
ecbff1
ecbff1
LONG_LINE_MAX is much like LINE_MAX, but longer.
ecbff1
ecbff1
As it turns out LINE_MAX at 4096 is too short for many usecases. Since
ecbff1
the general concept of having a common maximum line length limit makes
ecbff1
sense let's add our own, and make it larger (1MB for now).
ecbff1
ecbff1
(cherry-picked from commit 189912440f6545404e84b3cd1d6ca54f1057e3e6)
ecbff1
ecbff1
Resolves: #1503106
ecbff1
---
ecbff1
 src/shared/def.h | 2 ++
ecbff1
 1 file changed, 2 insertions(+)
ecbff1
ecbff1
diff --git a/src/shared/def.h b/src/shared/def.h
ecbff1
index 76daf012d..9e008a6d2 100644
ecbff1
--- a/src/shared/def.h
ecbff1
+++ b/src/shared/def.h
ecbff1
@@ -87,3 +87,5 @@
ecbff1
 
ecbff1
 #define NOTIFY_FD_MAX 768
ecbff1
 #define NOTIFY_BUFFER_MAX PIPE_BUF
ecbff1
+
ecbff1
+#define LONG_LINE_MAX (1U*1024U*1024U)