1 diff -ur audit-2.8.5.orig/auparse/interpret.c audit-2.8.5/auparse/interpret.c
2 --- audit-2.8.5.orig/auparse/interpret.c 2019-03-01 21:19:13.000000000 +0100
3 +++ audit-2.8.5/auparse/interpret.c 2022-04-02 20:34:04.713548373 +0200
5 #include <linux/ax25.h>
8 -#include <linux/if.h> // FIXME: remove when ipx.h is fixed
9 -#include <linux/ipx.h>
10 +#ifdef HAVE_IPX_HEADERS
11 + #include <linux/if.h> // FIXME: remove when ipx.h is fixed
12 + #include <linux/ipx.h>
14 #include <linux/capability.h>
15 #include <sys/personality.h>
16 #include <sys/prctl.h>
18 x->sax25_call.ax25_call[6]);
21 +#ifdef HAVE_IPX_HEADERS
24 const struct sockaddr_ipx *ip =
26 str, ip->sipx_port, ip->sipx_network);
32 const struct sockaddr_atmpvc* at =
33 diff -ur audit-2.8.5.orig/configure.ac audit-2.8.5/configure.ac
34 --- audit-2.8.5.orig/configure.ac 2022-04-02 20:33:47.114507326 +0200
35 +++ audit-2.8.5/configure.ac 2022-04-02 20:34:04.713548373 +0200
37 AC_DEFINE_UNQUOTED(HAVE_LIBWRAP, [], Define if tcp_wrappers support is enabled )
40 +# linux/ipx.h - deprecated in 2018
41 +AC_CHECK_HEADER(linux/ipx.h, ipx_headers=yes, ipx_headers=no)
42 +if test $ipx_headers = yes ; then
43 + AC_DEFINE(HAVE_IPX_HEADERS,1,[IPX packet interpretation])
46 # See if we want to support lower capabilities for plugins