aboutsummaryrefslogtreecommitdiff
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/syslogd.c b/syslogd.c
index 8d8bd1afe..89f5348ec 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -387,7 +387,9 @@ static void domark(int sig)
}
}
-static const int BUFSIZE = 1023;
+/* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are
+ * enabled, we otherwise get a "storage size isn't constant error. */
+#define BUFSIZE 1023
static int serveConnection (int conn)
{
RESERVE_BB_BUFFER(tmpbuf, BUFSIZE + 1);