From 7154d30adcf25af2616f6110c308ae3b5f616dfc Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 15 May 2014 12:29:10 +0200 Subject: [PATCH] miniupnpd/pcpserver.c: prevent compiling with PCP_PEER on if not applicable --- miniupnpd/pcpserver.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/miniupnpd/pcpserver.c b/miniupnpd/pcpserver.c index f747d72..9a809a9 100644 --- a/miniupnpd/pcpserver.c +++ b/miniupnpd/pcpserver.c @@ -1,4 +1,4 @@ -/* $Id: pcpserver.c,v 1.26 2014/03/24 13:08:52 nanard Exp $ */ +/* $Id: pcpserver.c,v 1.32 2014/05/15 10:27:36 nanard Exp $ */ /* MiniUPnP project * Website : http://miniupnp.free.fr/ * Author : Peter Tatrai @@ -88,8 +88,12 @@ POSSIBILITY OF SUCH DAMAGE. #ifdef PCP_PEER /* TODO make this platform independent */ +#ifdef USE_NETFILTER #include "netfilter/iptcrdr.h" -#endif +#else +#error "PCP Peer is only supported with NETFILTER" +#endif /* USE_NETFILTER */ +#endif /* PCP_PEER */ /* server specific information */ struct pcp_server_info {