Skip to contentSkip to conversation

conntrackd: search for RPC headers

PATCH Applied Ash Hughes 2 participants 2 messages May 27, 2019 – May 30, 2019 netfilter

lore
Share & tools
lore

Ash Hughes

author
#0 lore raw

PATCH 1/1 conntrackd: search for RPC headers

Attempts to get RPC headers from libtirpc if they aren't otherwise available.

---
 configure.ac            | 2 ++
 src/helpers/Makefile.am | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
configure.ac +2 -0
index 048d261..cb9659f 100644
@@ -50,6 +50,8 @@ AC_ARG_ENABLE([systemd],
         AS_HELP_STRING([--enable-systemd], [Build systemd support]),
         [enable_systemd="$enableval"], [enable_systemd="no"])
 
+AC_CHECK_HEADER([rpc/rpc_msg.h], [AC_SUBST([LIBTIRPC_CFLAGS],'')], [PKG_CHECK_MODULES([LIBTIRPC], [libtirpc])])
+
 PKG_CHECK_MODULES([LIBNFNETLINK], [libnfnetlink >= 1.0.1])
 PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.3])
 PKG_CHECK_MODULES([LIBNETFILTER_CONNTRACK], [libnetfilter_conntrack >= 1.0.7])
src/helpers/Makefile.am +1 -1
index 05801bc..51e2841 100644
@@ -31,7 +31,7 @@ ct_helper_mdns_la_CFLAGS = $(HELPER_CFLAGS)
 
 ct_helper_rpc_la_SOURCES = rpc.c
 ct_helper_rpc_la_LDFLAGS = $(HELPER_LDFLAGS)
-ct_helper_rpc_la_CFLAGS = $(HELPER_CFLAGS)
+ct_helper_rpc_la_CFLAGS = $(HELPER_CFLAGS) @LIBTIRPC_CFLAGS@
 
 ct_helper_tftp_la_SOURCES = tftp.c
 ct_helper_tftp_la_LDFLAGS = $(HELPER_LDFLAGS)
Signature · 1 line
2.21.0
maintainer Applied
#1 lore raw
Quoted 1 line · Ash Hughes

Attempts to get RPC headers from libtirpc if they aren't otherwise available.

Applied, thanks.