pkgsrc/net/jftpgw/patches/patch-ab
uebayasi 61ce658fb3 Refer to IPL_NAME if IPL_NAT is not defined. This hopefully fixes
a build failure reported by build builds.

And while here, suppress GCC3 warnings by doing s/log()/xlog()/.
2004-09-18 12:47:33 +00:00

18 lines
495 B
Text

$NetBSD: patch-ab,v 1.1 2004/09/18 12:47:33 uebayasi Exp $
--- support/ipfilter.c.orig 2003-02-20 07:30:26.000000000 +0900
+++ support/ipfilter.c
@@ -55,6 +55,13 @@ get_realdst(fd, laddrp, faddrp, np)
np->nl_outip = faddrp->sin_addr;
np->nl_flags = IPN_TCP;
+#ifndef IPL_NAT
+# ifdef IPL_NAME
+# define IPL_NAT IPL_NAME
+# else
+# error Neither IPL_NAT nor IPL_NAME undefined
+# endif
+#endif
if ((natfd = open(IPL_NAT, O_RDONLY)) < 0) {
perror("open");
return(0);