mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 01:16:28 -04:00
the C (and C++) standards mandated for years and compilers started to enforce as of recently (Clang 11, GCC 10). Reported by: pkg-fallout
19 lines
408 B
C
19 lines
408 B
C
--- logrotate.c.orig 2017-10-12 15:19:41 UTC
|
|
+++ logrotate.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>
|
|
@@ -29,6 +29,8 @@
|
|
|
|
#include "log.h"
|
|
#include "logrotate.h"
|
|
+
|
|
+struct logInfoHead logs;
|
|
|
|
static void *prev_context;
|
|
#ifdef WITH_SELINUX
|