ports/security/bsmtrace/files/patch-bsmtrace.c
Kyle Evans c6372e4636 security/bsmtrace: backport the -fno-common fix
This port is the older version of bsmtrace and should go away in due time,
but it's easy enough to backport the fix in the meantime. This version did
need an additional fix to log.{c,h} that was no longer needed in 3.x.

PR:		248756
Approved by:	csjp (maintainer, also discussed with)
MFH:		2020Q3 (-fno-common build fix)
2020-08-24 00:28:44 +00:00

19 lines
375 B
C

--- bsmtrace.c.orig 2014-01-14 22:51:19 UTC
+++ bsmtrace.c
@@ -30,6 +30,7 @@
#include "includes.h"
static int daemonized; /* daemonized or not? */
+int audit_pipe_fd;
/*
* If we are going to be daemonized, write out a pid file to
@@ -92,7 +92,7 @@ bsmtrace_exit(int x)
}
void
-dprintf(char *fmt, ...)
+d_printf(char *fmt, ...)
{
char buf[1024];
va_list ap;