pkgsrc/sysutils/logrotate/patches/patch-config.c
sbd 8ad869a17b Add logrotate-3.8.1 as sysutils/logrotate
The logrotate utility is designed to simplify the administration of
log files on a system which generates a lot of log files.  Logrotate
allows for the automatic rotation compression, removal and mailing of
log files.  Logrotate can be set to handle a log file daily, weekly,
monthly or when the log file gets to a certain size.  Normally,
logrotate runs as a daily cron job.
2012-03-06 04:53:24 +00:00

17 lines
386 B
C

$NetBSD: patch-config.c,v 1.1.1.1 2012/03/06 04:53:24 sbd Exp $
Compatibility patch for systems not using alloca.h .
Patch commited upstream
--- config.c.orig 2011-08-31 12:39:04.000000000 +0000
+++ config.c
@@ -1,6 +1,9 @@
#include <sys/queue.h>
+#ifdef _ALLOCA_H
#include <alloca.h>
+#else
#include <limits.h>
+#endif
#include <ctype.h>
#include <dirent.h>
#include <errno.h>