summaryrefslogtreecommitdiff
path: root/sysutils/logrotate/files/patch-config.c
blob: 03259d90c3c0a46bd4fa057b12173968abef48f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- config.c.orig	2017-10-12 15:19:41 UTC
+++ config.c
@@ -1,6 +1,6 @@
 #include "queue.h"
 /* Alloca is defined in stdlib.h in NetBSD */
-#ifndef __NetBSD__
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
 #include <alloca.h>
 #endif
 #include <limits.h>
@@ -27,6 +27,8 @@
 
 #include "log.h"
 #include "logrotate.h"
+
+extern struct logInfoHead logs;
 
 #if !defined(GLOB_ABORTED) && defined(GLOB_ABEND)
 #define GLOB_ABORTED GLOB_ABEND