Index: src/nat/Makefile.am =================================================================== --- src/nat/Makefile.am (revision 30882) +++ src/nat/Makefile.am (working copy) @@ -21,8 +21,16 @@ install-exec-hook: $(top_srcdir)/src/nat/install-nat-helper.sh $(libexecdir) $(SUDO_BINARY) || true else +if XFREEBSD + NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client + NATSERVER = gnunet-helper-nat-server.c + NATCLIENT = gnunet-helper-nat-client.c install-exec-hook: + $(top_srcdir)/src/nat/install-nat-helper.sh $(libexecdir) $(SUDO_BINARY) || true endif +else +install-exec-hook: +endif bin_PROGRAMS = \ gnunet-nat-server @@ -97,4 +105,4 @@ EXTRA_DIST = \ test_nat_data.conf \ - test_nat_test_data.conf \ No newline at end of file + test_nat_test_data.conf Index: src/nat/gnunet-helper-nat-client.c =================================================================== --- src/nat/gnunet-helper-nat-client.c (revision 30882) +++ src/nat/gnunet-helper-nat-client.c (working copy) @@ -61,6 +61,11 @@ #include #include +/* The following constant is missing from FreeBSD 9.2 */ +#ifndef ICMP_TIME_EXCEEDED +#define ICMP_TIME_EXCEEDED 11 +#endif + /** * Must match IP given in the server. */ Index: src/nat/gnunet-helper-nat-server.c =================================================================== --- src/nat/gnunet-helper-nat-server.c (revision 30882) +++ src/nat/gnunet-helper-nat-server.c (working copy) @@ -65,6 +65,11 @@ #include #include +/* The following constant is missing from FreeBSD 9.2 */ +#ifndef ICMP_TIME_EXCEEDED +#define ICMP_TIME_EXCEEDED 11 +#endif + /** * Should we print some debug output? */