ports/security/bsmtrace/files/patch-bsmtrace.h
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

17 lines
486 B
C

--- bsmtrace.h.orig 2014-02-05 02:34:38 UTC
+++ bsmtrace.h
@@ -38,11 +38,11 @@ int audit_pipe_fd; /* XXX not happy abou
char *pflag;
};
-struct g_conf opts;
-int audit_pipe_fd; /* XXX not happy about this global */
+extern struct g_conf opts;
+extern int audit_pipe_fd; /* XXX not happy about this global */
void bsmtrace_error(int, char *, ...);
void bsmtrace_exit(int);
-void dprintf(char *, ...);
+void d_printf(char *, ...);
void usage(char *);
#endif /* BSM_TRACE_H_ */