Closed alex-eri closed 8 years ago
Try patching system.h:
--- a/src/system.h
+++ b/src/system.h
@@ -117,18 +117,6 @@
#include <inttypes.h>
#endif
-#if defined(__linux__)
-#include <asm/types.h>
-#include <linux/if.h>
-#include <linux/if_packet.h>
-#include <linux/if_ether.h>
-#include <linux/if_tun.h>
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
-#ifndef HAVE_SYS_UN_H
-#include <linux/un.h>
-#endif
-
#ifdef HAVE_SYS_SYSINFO_H
#include <sys/sysinfo.h>
#else
@@ -244,6 +232,20 @@
#include <unistd.h>
#include <errno.h>
+#if defined(__linux__)
+#include <asm/types.h>
+#include <linux/if.h>
+#include <linux/if_packet.h>
+#include <linux/if_ether.h>
+#include <linux/if_tun.h>
+#include <linux/netlink.h>
+#include <linux/rtnetlink.h>
+#include <linux/if_vlan.h>
+#include <linux/sockios.h>
+#ifndef HAVE_SYS_UN_H
+#include <linux/un.h>
+#endif
+
int safe_accept(int fd, struct sockaddr *sa, socklen_t *lenptr);
int safe_select(int nfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout);
*** src/system.h~ 2016-09-26 21:27:12.000000000 +0300
--- src/system.h 2016-10-13 02:46:26.996070770 +0300
***************
*** 121,127 ****
--- 121,129 ----
#include <asm/types.h>
#include <linux/if.h>
#include <linux/if_packet.h>
+ #ifndef _UAPI_LINUX_IF_ETHER_H
#include <linux/if_ether.h>
+ #endif
#include <linux/if_tun.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
***************
*** 169,175 ****
#include <net/if_tun.h>
#endif
! #ifdef HAVE_NET_ETHERNET_H
#include <net/ethernet.h>
#endif
--- 171,177 ----
#include <net/if_tun.h>
#endif
! #if defined(HAVE_NET_ETHERNET_H) && !defined(__linux__)
#include <net/ethernet.h>
#endif
Patched in this way chilli builds, but no iptables exten in build dir...
wait... module exist at another dir.. no /usr/lib/iptables/lib* , but xtables in /lib exists
@nzamps tryed yours. Now many errors with linux/if.h