Explorar o código

netfilter: nf_nat: define nat_pptp_info as needed

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Changli Gao %!s(int64=14) %!d(string=hai) anos
pai
achega
03c0e5bb34
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/net/netfilter/nf_nat.h

+ 2 - 0
include/net/netfilter/nf_nat.h

@@ -56,7 +56,9 @@ struct nf_nat_multi_range_compat {
 /* per conntrack: nat application helper private data */
 union nf_conntrack_nat_help {
 	/* insert nat helper private data here */
+#if defined(CONFIG_NF_NAT_PPTP) || defined(CONFIG_NF_NAT_PPTP_MODULE)
 	struct nf_nat_pptp nat_pptp_info;
+#endif
 };
 
 struct nf_conn;