Per patch from vodz, change a couple of consts to defines, since
[oweals/busybox.git] / sysklogd / syslogd.c
index 8d8bd1afefae74bc689156e525493fae1c18737b..89f5348ec94ffbd197fac8ee275873ffe33d4463 100644 (file)
@@ -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);