From 30173cbe326f24f9341b672db1ecd92003bb8485 Mon Sep 17 00:00:00 2001 From: dingjun Date: Tue, 11 Apr 2017 16:27:37 +0800 Subject: [PATCH] fix build error when use RPI toolchain --- redir_iptables_2.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/redir_iptables_2.go b/redir_iptables_2.go index 6a2abb5..57c10a1 100644 --- a/redir_iptables_2.go +++ b/redir_iptables_2.go @@ -11,6 +11,11 @@ package obfssh #include #include +// the RPI toolchain does not have this macro +#ifndef IP6T_SO_ORIGINAL_DST +#define IP6T_SO_ORIGINAL_DST 80 +#endif + int get_original_dst4(int fd, void *addr); int get_original_dst6(int fd, void *addr);