diff options
Diffstat (limited to 'app-admin/logrotate/files/logrotate-3.12.3-fbsd.patch')
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.12.3-fbsd.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app-admin/logrotate/files/logrotate-3.12.3-fbsd.patch b/app-admin/logrotate/files/logrotate-3.12.3-fbsd.patch new file mode 100644 index 000000000000..67a60e3af177 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.12.3-fbsd.patch @@ -0,0 +1,36 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2017-04-22 23:46:08.201991730 +0200 ++++ b/config.c 2017-04-22 23:49:43.021996055 +0200 +@@ -25,6 +25,10 @@ + #include <sys/mman.h> + #include <libgen.h> + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "log.h" + #include "logrotate.h" + +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2017-04-21 10:52:10.000000000 +0200 ++++ b/logrotate.c 2017-04-22 23:50:20.691996814 +0200 +@@ -1,6 +1,6 @@ + #include "queue.h" + /* alloca() is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -27,6 +27,10 @@ + #include <limits.h> + #endif + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "log.h" + #include "logrotate.h" + |